| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 29e396b8db4c002d472a6aa8012e7e1326976166..3e7f6fb0fe2ffb3ab656d136dc404a973724cba8 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1244,7 +1244,7 @@ Handle<JSFunction> Factory::NewFunction(Handle<Map> map,
|
| Handle<JSFunction> Factory::NewFunction(Handle<Map> map,
|
| Handle<String> name,
|
| MaybeHandle<Code> code) {
|
| - Handle<Context> context(isolate()->context()->native_context());
|
| + Handle<Context> context(isolate()->native_context());
|
| Handle<SharedFunctionInfo> info = NewSharedFunctionInfo(name, code);
|
| ASSERT((info->strict_mode() == SLOPPY) &&
|
| (map.is_identical_to(isolate()->sloppy_function_map()) ||
|
| @@ -1690,7 +1690,7 @@ Handle<JSGeneratorObject> Factory::NewJSGeneratorObject(
|
|
|
| Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() {
|
| Handle<JSFunction> array_buffer_fun(
|
| - isolate()->context()->native_context()->array_buffer_fun());
|
| + isolate()->native_context()->array_buffer_fun());
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| isolate()->heap()->AllocateJSObject(*array_buffer_fun),
|
| @@ -1700,7 +1700,7 @@ Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() {
|
|
|
| Handle<JSDataView> Factory::NewJSDataView() {
|
| Handle<JSFunction> data_view_fun(
|
| - isolate()->context()->native_context()->data_view_fun());
|
| + isolate()->native_context()->data_view_fun());
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| isolate()->heap()->AllocateJSObject(*data_view_fun),
|
| @@ -1824,7 +1824,7 @@ void Factory::ReinitializeJSReceiver(Handle<JSReceiver> object,
|
| if (type == JS_FUNCTION_TYPE) {
|
| map->set_function_with_prototype(true);
|
| Handle<JSFunction> js_function = Handle<JSFunction>::cast(object);
|
| - Handle<Context> context(isolate()->context()->native_context());
|
| + Handle<Context> context(isolate()->native_context());
|
| InitializeFunction(js_function, shared.ToHandleChecked(), context);
|
| }
|
| }
|
| @@ -2120,15 +2120,15 @@ Handle<JSFunction> Factory::CreateApiFunction(
|
| int instance_size = kPointerSize * internal_field_count;
|
| InstanceType type;
|
| switch (instance_type) {
|
| - case JavaScriptObject:
|
| + case JavaScriptObjectType:
|
| type = JS_OBJECT_TYPE;
|
| instance_size += JSObject::kHeaderSize;
|
| break;
|
| - case InnerGlobalObject:
|
| + case GlobalObjectType:
|
| type = JS_GLOBAL_OBJECT_TYPE;
|
| instance_size += JSGlobalObject::kSize;
|
| break;
|
| - case OuterGlobalObject:
|
| + case GlobalProxyType:
|
| type = JS_GLOBAL_PROXY_TYPE;
|
| instance_size += JSGlobalProxy::kSize;
|
| break;
|
|
|