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

Side by Side Diff: src/contexts.h

Issue 238063009: ES6: Add support for Map/Set forEach (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove explicit instantiation of private and functions in objects-inl.h Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ 184 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \
185 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ 185 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \
186 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \ 186 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \
187 observers_begin_perform_splice) \ 187 observers_begin_perform_splice) \
188 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ 188 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \
189 observers_end_perform_splice) \ 189 observers_end_perform_splice) \
190 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 190 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
191 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ 191 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
192 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ 192 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \
193 generator_object_prototype_map) \ 193 generator_object_prototype_map) \
194 V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) 194 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
195 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
196 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map)
195 197
196 // JSFunctions are pairs (context, function code), sometimes also called 198 // JSFunctions are pairs (context, function code), sometimes also called
197 // closures. A Context object is used to represent function contexts and 199 // closures. A Context object is used to represent function contexts and
198 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). 200 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak).
199 // 201 //
200 // At runtime, the contexts build a stack in parallel to the execution 202 // At runtime, the contexts build a stack in parallel to the execution
201 // stack, with the top-most context being the current context. All contexts 203 // stack, with the top-most context being the current context. All contexts
202 // have the following slots: 204 // have the following slots:
203 // 205 //
204 // [ closure ] This is the current function. It is the same for all 206 // [ closure ] This is the current function. It is the same for all
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 DERIVED_GET_TRAP_INDEX, 342 DERIVED_GET_TRAP_INDEX,
341 DERIVED_SET_TRAP_INDEX, 343 DERIVED_SET_TRAP_INDEX,
342 PROXY_ENUMERATE_INDEX, 344 PROXY_ENUMERATE_INDEX,
343 OBSERVERS_NOTIFY_CHANGE_INDEX, 345 OBSERVERS_NOTIFY_CHANGE_INDEX,
344 OBSERVERS_ENQUEUE_SPLICE_INDEX, 346 OBSERVERS_ENQUEUE_SPLICE_INDEX,
345 OBSERVERS_BEGIN_SPLICE_INDEX, 347 OBSERVERS_BEGIN_SPLICE_INDEX,
346 OBSERVERS_END_SPLICE_INDEX, 348 OBSERVERS_END_SPLICE_INDEX,
347 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 349 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
348 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 350 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
349 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 351 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
350 GENERATOR_RESULT_MAP_INDEX, 352 ITERATOR_RESULT_MAP_INDEX,
353 MAP_ITERATOR_MAP_INDEX,
354 SET_ITERATOR_MAP_INDEX,
351 355
352 // Properties from here are treated as weak references by the full GC. 356 // Properties from here are treated as weak references by the full GC.
353 // Scavenge treats them as strong references. 357 // Scavenge treats them as strong references.
354 OPTIMIZED_FUNCTIONS_LIST, // Weak. 358 OPTIMIZED_FUNCTIONS_LIST, // Weak.
355 OPTIMIZED_CODE_LIST, // Weak. 359 OPTIMIZED_CODE_LIST, // Weak.
356 DEOPTIMIZED_CODE_LIST, // Weak. 360 DEOPTIMIZED_CODE_LIST, // Weak.
357 MAP_CACHE_INDEX, // Weak. 361 MAP_CACHE_INDEX, // Weak.
358 NEXT_CONTEXT_LINK, // Weak. 362 NEXT_CONTEXT_LINK, // Weak.
359 363
360 // Total number of slots. 364 // Total number of slots.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 534 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
531 #endif 535 #endif
532 536
533 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); 537 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize);
534 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 538 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
535 }; 539 };
536 540
537 } } // namespace v8::internal 541 } } // namespace v8::internal
538 542
539 #endif // V8_CONTEXTS_H_ 543 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/collection.js ('k') | src/factory.h » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698