Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 23bea4f8568ce2cebeccf8212be82343e75e4d29..1ec0d6deb086ed1627df6721b6ff4379e045ed0a 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. |