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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ | 95 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
96 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 96 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
97 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 97 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
98 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ | 98 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ |
99 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ | 99 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
100 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ | 100 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ |
101 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ | 101 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ |
102 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ | 102 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ |
103 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 103 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
104 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ | 104 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ |
105 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | |
106 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ | 105 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ |
107 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 106 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
108 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ | 107 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ |
109 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 108 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
110 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ | 109 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ |
111 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 110 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
112 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ | 111 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ |
113 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ | 112 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ |
114 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ | 113 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ |
115 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 114 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 INT8_ARRAY_EXTERNAL_MAP_INDEX, | 371 INT8_ARRAY_EXTERNAL_MAP_INDEX, |
373 UINT8_ARRAY_EXTERNAL_MAP_INDEX, | 372 UINT8_ARRAY_EXTERNAL_MAP_INDEX, |
374 INT16_ARRAY_EXTERNAL_MAP_INDEX, | 373 INT16_ARRAY_EXTERNAL_MAP_INDEX, |
375 UINT16_ARRAY_EXTERNAL_MAP_INDEX, | 374 UINT16_ARRAY_EXTERNAL_MAP_INDEX, |
376 INT32_ARRAY_EXTERNAL_MAP_INDEX, | 375 INT32_ARRAY_EXTERNAL_MAP_INDEX, |
377 UINT32_ARRAY_EXTERNAL_MAP_INDEX, | 376 UINT32_ARRAY_EXTERNAL_MAP_INDEX, |
378 FLOAT32_ARRAY_EXTERNAL_MAP_INDEX, | 377 FLOAT32_ARRAY_EXTERNAL_MAP_INDEX, |
379 FLOAT64_ARRAY_EXTERNAL_MAP_INDEX, | 378 FLOAT64_ARRAY_EXTERNAL_MAP_INDEX, |
380 UINT8_CLAMPED_ARRAY_EXTERNAL_MAP_INDEX, | 379 UINT8_CLAMPED_ARRAY_EXTERNAL_MAP_INDEX, |
381 DATA_VIEW_FUN_INDEX, | 380 DATA_VIEW_FUN_INDEX, |
382 SHARED_ARRAY_BUFFER_FUN_INDEX, | |
383 MESSAGE_LISTENERS_INDEX, | 381 MESSAGE_LISTENERS_INDEX, |
384 MAKE_MESSAGE_FUN_INDEX, | 382 MAKE_MESSAGE_FUN_INDEX, |
385 GET_STACK_TRACE_LINE_INDEX, | 383 GET_STACK_TRACE_LINE_INDEX, |
386 CONFIGURE_GLOBAL_INDEX, | 384 CONFIGURE_GLOBAL_INDEX, |
387 FUNCTION_CACHE_INDEX, | 385 FUNCTION_CACHE_INDEX, |
388 JSFUNCTION_RESULT_CACHES_INDEX, | 386 JSFUNCTION_RESULT_CACHES_INDEX, |
389 NORMALIZED_MAP_CACHE_INDEX, | 387 NORMALIZED_MAP_CACHE_INDEX, |
390 RUNTIME_CONTEXT_INDEX, | 388 RUNTIME_CONTEXT_INDEX, |
391 CALL_AS_FUNCTION_DELEGATE_INDEX, | 389 CALL_AS_FUNCTION_DELEGATE_INDEX, |
392 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 390 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 630 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
633 #endif | 631 #endif |
634 | 632 |
635 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 633 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
636 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 634 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
637 }; | 635 }; |
638 | 636 |
639 } } // namespace v8::internal | 637 } } // namespace v8::internal |
640 | 638 |
641 #endif // V8_CONTEXTS_H_ | 639 #endif // V8_CONTEXTS_H_ |
OLD | NEW |