Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index b37855b8e0929af23380bce6da69c736fd054954..fee762d2bbb64611c44b73c1d52ee07fcb1816a8 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -98,9 +98,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. |