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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ | 123 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ |
124 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ | 124 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ |
125 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ | 125 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ |
126 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ | 126 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ |
127 native_object_notifier_perform_change) \ | 127 native_object_notifier_perform_change) \ |
128 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ | 128 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ |
129 V(NO_SIDE_EFFECT_TO_STRING_FUN_INDEX, JSFunction, \ | 129 V(NO_SIDE_EFFECT_TO_STRING_FUN_INDEX, JSFunction, \ |
130 no_side_effect_to_string_fun) \ | 130 no_side_effect_to_string_fun) \ |
131 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 131 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
132 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 132 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
133 V(OBJECT_GET_OWN_PROPERTY_DESCROPTOR_INDEX, JSFunction, \ | |
134 object_get_own_property_descriptor) \ | |
135 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, observers_begin_perform_splice) \ | 133 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, observers_begin_perform_splice) \ |
136 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ | 134 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ |
137 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ | 135 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ |
138 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | 136 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ |
139 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 137 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
140 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ | 138 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ |
141 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 139 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
142 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 140 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
143 promise_has_user_defined_reject_handler) \ | 141 promise_has_user_defined_reject_handler) \ |
144 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 142 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
145 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 143 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
146 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 144 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
147 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 145 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
148 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 146 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
149 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 147 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
150 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 148 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
151 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 149 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
152 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 150 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
153 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ | 151 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ |
154 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 152 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
155 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | |
156 to_complete_property_descriptor) \ | |
157 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 153 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
158 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 154 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
159 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ | 155 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ |
160 NATIVE_CONTEXT_JS_BUILTINS(V) | 156 NATIVE_CONTEXT_JS_BUILTINS(V) |
161 | 157 |
162 #define NATIVE_CONTEXT_FIELDS(V) \ | 158 #define NATIVE_CONTEXT_FIELDS(V) \ |
163 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ | 159 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
164 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 160 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
165 /* Below is alpha-sorted */ \ | 161 /* Below is alpha-sorted */ \ |
166 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 162 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 #endif | 547 #endif |
552 | 548 |
553 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 549 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
554 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 550 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
555 }; | 551 }; |
556 | 552 |
557 } // namespace internal | 553 } // namespace internal |
558 } // namespace v8 | 554 } // namespace v8 |
559 | 555 |
560 #endif // V8_CONTEXTS_H_ | 556 #endif // V8_CONTEXTS_H_ |
OLD | NEW |