| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 50cddcaae55cf8d587b9c7f67406884cac6abd98..185b6941e929cafb3aa88612c04e9f6e42d15238 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -71,9 +71,9 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) {
|
| // Get the function info from the stack.
|
| __ mov(edx, Operand(esp, 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.
|
|
|