Made NativeObject abstract,added compileCode.