| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index bf50869ed90f1a381160756ecacbd633c456a1b2..b565d57347003969b8bad40c960478aceb584627 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -68,9 +68,9 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) {
|
| // Get the function info from the stack.
|
| __ movq(rdx, Operand(rsp, 1 * kPointerSize));
|
|
|
| - int map_index = strict_mode_ == kStrictMode
|
| - ? Context::STRICT_MODE_FUNCTION_MAP_INDEX
|
| - : Context::FUNCTION_MAP_INDEX;
|
| + int map_index = (language_mode_ == CLASSIC_MODE)
|
| + ? Context::FUNCTION_MAP_INDEX
|
| + : Context::STRICT_MODE_FUNCTION_MAP_INDEX;
|
|
|
| // Compute the function map in the current global context and set that
|
| // as the map of the allocated object.
|
|
|