| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index 3476d35e562fb6b0c6c1ca3810a955de2c918519..f0f38ebe9376962df326dab42cc1abff0f67958a 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -2117,7 +2117,7 @@
|
| Node* script_context = assembler.LoadScriptContext(context, context_index());
|
| assembler.StoreFixedArrayElement(
|
| script_context, assembler.IntPtrConstant(slot_index()), value,
|
| - UPDATE_WRITE_BARRIER, 0, CodeStubAssembler::INTPTR_PARAMETERS);
|
| + UPDATE_WRITE_BARRIER, CodeStubAssembler::INTPTR_PARAMETERS);
|
| assembler.Return(value);
|
| }
|
|
|
| @@ -2621,19 +2621,21 @@
|
| assembler->SmiFromWord32(length));
|
|
|
| // Set up the fixed slots.
|
| - assembler->StoreFixedArrayElement(function_context, Context::CLOSURE_INDEX,
|
| - function, SKIP_WRITE_BARRIER);
|
| - assembler->StoreFixedArrayElement(function_context, Context::PREVIOUS_INDEX,
|
| - context, SKIP_WRITE_BARRIER);
|
| - assembler->StoreFixedArrayElement(function_context, Context::EXTENSION_INDEX,
|
| - assembler->TheHoleConstant(),
|
| - SKIP_WRITE_BARRIER);
|
| + assembler->StoreFixedArrayElement(
|
| + function_context, assembler->Int32Constant(Context::CLOSURE_INDEX),
|
| + function, SKIP_WRITE_BARRIER);
|
| + assembler->StoreFixedArrayElement(
|
| + function_context, assembler->Int32Constant(Context::PREVIOUS_INDEX),
|
| + context, SKIP_WRITE_BARRIER);
|
| + assembler->StoreFixedArrayElement(
|
| + function_context, assembler->Int32Constant(Context::EXTENSION_INDEX),
|
| + assembler->TheHoleConstant(), SKIP_WRITE_BARRIER);
|
|
|
| // Copy the native context from the previous context.
|
| Node* native_context = assembler->LoadNativeContext(context);
|
| - assembler->StoreFixedArrayElement(function_context,
|
| - Context::NATIVE_CONTEXT_INDEX,
|
| - native_context, SKIP_WRITE_BARRIER);
|
| + assembler->StoreFixedArrayElement(
|
| + function_context, assembler->Int32Constant(Context::NATIVE_CONTEXT_INDEX),
|
| + native_context, SKIP_WRITE_BARRIER);
|
|
|
| // Initialize the rest of the slots to undefined.
|
| Node* undefined = assembler->UndefinedConstant();
|
|
|