Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: src/arm/code-stubs-arm.cc

Issue 13192004: arrange to create prototypes for generators (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Allow fast closure creation for generators Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | test/mjsunit/builtins.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | test/mjsunit/builtins.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698