Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index d982f27065788a1f25eed56cb99e6b3a3ff4bdaf..7f20cd0e502c0a847c8182fb5636f1586c1b4ea8 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -181,9 +181,13 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) { |
__ IncrementCounter(counters->fast_new_closure_total(), 1, r6, r7); |
- int map_index = (language_mode_ == CLASSIC_MODE) |
- ? Context::FUNCTION_MAP_INDEX |
- : Context::STRICT_MODE_FUNCTION_MAP_INDEX; |
+ int map_index = is_generator_ |
rossberg
2013/04/11 13:05:20
Nit: it would be nice if this could be moved into
wingo
2013/04/11 14:38:45
Done.
|
+ ? ((language_mode_ == CLASSIC_MODE) |
+ ? Context::GENERATOR_FUNCTION_MAP_INDEX |
+ : Context::STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX) |
+ : ((language_mode_ == CLASSIC_MODE) |
+ ? Context::FUNCTION_MAP_INDEX |
+ : Context::STRICT_MODE_FUNCTION_MAP_INDEX); |
// Compute the function map in the current native context and set that |
// as the map of the allocated object. |