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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 call_non_function_as_constructor_builtin) \ | 98 call_non_function_as_constructor_builtin) \ |
99 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \ | 99 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \ |
100 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \ | 100 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \ |
101 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ | 101 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ |
102 concat_iterable_to_array_builtin) \ | 102 concat_iterable_to_array_builtin) \ |
103 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \ | 103 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \ |
104 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \ | 104 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \ |
105 reflect_apply_prepare_builtin) \ | 105 reflect_apply_prepare_builtin) \ |
106 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \ | 106 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \ |
107 reflect_construct_prepare_builtin) \ | 107 reflect_construct_prepare_builtin) \ |
108 V(STACK_OVERFLOW_BUILTIN_INDEX, JSFunction, stack_overflow_builtin) \ | |
109 V(STRING_ADD_LEFT_BUILTIN_INDEX, JSFunction, string_add_left_builtin) \ | 108 V(STRING_ADD_LEFT_BUILTIN_INDEX, JSFunction, string_add_left_builtin) \ |
110 V(STRING_ADD_RIGHT_BUILTIN_INDEX, JSFunction, string_add_right_builtin) | 109 V(STRING_ADD_RIGHT_BUILTIN_INDEX, JSFunction, string_add_right_builtin) |
111 | 110 |
112 | 111 |
113 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 112 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
114 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 113 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
115 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 114 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
116 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 115 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
117 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 116 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
118 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 117 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 558 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
560 #endif | 559 #endif |
561 | 560 |
562 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 561 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
563 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 562 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
564 }; | 563 }; |
565 | 564 |
566 } } // namespace v8::internal | 565 } } // namespace v8::internal |
567 | 566 |
568 #endif // V8_CONTEXTS_H_ | 567 #endif // V8_CONTEXTS_H_ |
OLD | NEW |