| Index: src/compiler/js-call-reducer.cc
|
| diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc
|
| index d46ade2f8410d5fcc85bf2ea5963db4a97df52a7..7d661da69e63bfbd2f9405404ffb98e4dccf5b3d 100644
|
| --- a/src/compiler/js-call-reducer.cc
|
| +++ b/src/compiler/js-call-reducer.cc
|
| @@ -261,9 +261,11 @@
|
| array_function = jsgraph()->HeapConstant(
|
| handle(native_context->array_function(), isolate()));
|
| } else {
|
| + Node* global_object = effect = graph()->NewNode(
|
| + javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true),
|
| + context, context, effect);
|
| Node* native_context = effect = graph()->NewNode(
|
| - javascript()->LoadContext(0, Context::NATIVE_CONTEXT_INDEX, true),
|
| - context, context, effect);
|
| + javascript()->LoadNativeContext(), global_object, context, effect);
|
| array_function = effect = graph()->NewNode(
|
| javascript()->LoadContext(0, Context::ARRAY_FUNCTION_INDEX, true),
|
| native_context, native_context, effect);
|
| @@ -402,9 +404,11 @@
|
| array_function = jsgraph()->HeapConstant(
|
| handle(native_context->array_function(), isolate()));
|
| } else {
|
| + Node* global_object = effect = graph()->NewNode(
|
| + javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true),
|
| + context, context, effect);
|
| Node* native_context = effect = graph()->NewNode(
|
| - javascript()->LoadContext(0, Context::NATIVE_CONTEXT_INDEX, true),
|
| - context, context, effect);
|
| + javascript()->LoadNativeContext(), global_object, context, effect);
|
| array_function = effect = graph()->NewNode(
|
| javascript()->LoadContext(0, Context::ARRAY_FUNCTION_INDEX, true),
|
| native_context, native_context, effect);
|
|
|