Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 8b845077a5de0110b593eaf191111840c6f07b29..f811ee010b4f59eb3216d9a781adc85b90f108bb 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -100,9 +100,9 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) { |
&gc, |
TAG_OBJECT); |
- 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. |