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

Unified Diff: src/contexts.h

Issue 13870007: Generators return boxed values (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Rebase; add needed write barrier 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
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index 2672487531f4ec478e7f18ef89aa9bcfb2f148a0..1d5947dfb2b74711f9c8bd94df9c82a197c5528b 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -179,6 +179,7 @@ enum BindingFlags {
strict_mode_generator_function_map) \
V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \
generator_object_prototype_map) \
+ V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
V(RANDOM_SEED_INDEX, ByteArray, random_seed)
// JSFunctions are pairs (context, function code), sometimes also called
@@ -321,6 +322,7 @@ class Context: public FixedArray {
GENERATOR_FUNCTION_MAP_INDEX,
STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX,
GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
+ ITERATOR_RESULT_MAP_INDEX,
Michael Starzinger 2013/05/06 11:22:32 Let's rename this to GENERATOR_RESULT_MAP_INDEX as
RANDOM_SEED_INDEX,
// Properties from here are treated as weak references by the full GC.

Powered by Google App Engine
This is Rietveld 408576698