OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CONTEXTS_H_ | 5 #ifndef V8_CONTEXTS_H_ |
6 #define V8_CONTEXTS_H_ | 6 #define V8_CONTEXTS_H_ |
7 | 7 |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 | 10 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ | 180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ |
181 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ | 181 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ |
182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ | 182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ |
183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ | 183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ |
184 native_object_notifier_perform_change) \ | 184 native_object_notifier_perform_change) \ |
185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ | 185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ |
186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ | 186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ | 187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ |
188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ | 188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ |
189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ | 189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ |
| 190 V(JS_MAP_FUN_INDEX, JSFunction, js_map_fun) \ |
190 V(JS_MAP_MAP_INDEX, Map, js_map_map) \ | 191 V(JS_MAP_MAP_INDEX, Map, js_map_map) \ |
| 192 V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \ |
191 V(JS_SET_MAP_INDEX, Map, js_set_map) \ | 193 V(JS_SET_MAP_INDEX, Map, js_set_map) \ |
192 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ | 194 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ |
193 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ | 195 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ |
194 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ | 196 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ |
195 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ | 197 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ |
196 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 198 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
197 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ | 199 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ |
198 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ | 200 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ |
199 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) | 201 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) |
200 | 202 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 OBSERVERS_BEGIN_SPLICE_INDEX, | 426 OBSERVERS_BEGIN_SPLICE_INDEX, |
425 OBSERVERS_END_SPLICE_INDEX, | 427 OBSERVERS_END_SPLICE_INDEX, |
426 NATIVE_OBJECT_OBSERVE_INDEX, | 428 NATIVE_OBJECT_OBSERVE_INDEX, |
427 NATIVE_OBJECT_GET_NOTIFIER_INDEX, | 429 NATIVE_OBJECT_GET_NOTIFIER_INDEX, |
428 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, | 430 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, |
429 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, | 431 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, |
430 STRICT_GENERATOR_FUNCTION_MAP_INDEX, | 432 STRICT_GENERATOR_FUNCTION_MAP_INDEX, |
431 STRONG_GENERATOR_FUNCTION_MAP_INDEX, | 433 STRONG_GENERATOR_FUNCTION_MAP_INDEX, |
432 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, | 434 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, |
433 ITERATOR_RESULT_MAP_INDEX, | 435 ITERATOR_RESULT_MAP_INDEX, |
| 436 JS_MAP_FUN_INDEX, |
434 JS_MAP_MAP_INDEX, | 437 JS_MAP_MAP_INDEX, |
| 438 JS_SET_FUN_INDEX, |
435 JS_SET_MAP_INDEX, | 439 JS_SET_MAP_INDEX, |
436 MAP_FROM_ARRAY_INDEX, | 440 MAP_FROM_ARRAY_INDEX, |
437 SET_FROM_ARRAY_INDEX, | 441 SET_FROM_ARRAY_INDEX, |
438 MAP_ITERATOR_MAP_INDEX, | 442 MAP_ITERATOR_MAP_INDEX, |
439 SET_ITERATOR_MAP_INDEX, | 443 SET_ITERATOR_MAP_INDEX, |
440 ARRAY_VALUES_ITERATOR_INDEX, | 444 ARRAY_VALUES_ITERATOR_INDEX, |
441 SCRIPT_CONTEXT_TABLE_INDEX, | 445 SCRIPT_CONTEXT_TABLE_INDEX, |
442 MAP_CACHE_INDEX, | 446 MAP_CACHE_INDEX, |
443 STRONG_MAP_CACHE_INDEX, | 447 STRONG_MAP_CACHE_INDEX, |
444 TO_LENGTH_FUN_INDEX, | 448 TO_LENGTH_FUN_INDEX, |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 648 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
645 #endif | 649 #endif |
646 | 650 |
647 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 651 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
648 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 652 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
649 }; | 653 }; |
650 | 654 |
651 } } // namespace v8::internal | 655 } } // namespace v8::internal |
652 | 656 |
653 #endif // V8_CONTEXTS_H_ | 657 #endif // V8_CONTEXTS_H_ |
OLD | NEW |