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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 111 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
112 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 112 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
113 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 113 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
114 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ | 114 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ |
115 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ | 115 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ |
116 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 116 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
117 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 117 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
118 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ | 118 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ |
119 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ | 119 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ |
120 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ | 120 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ |
121 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ | |
122 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ | 121 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ |
123 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ | 122 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ |
124 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ | 123 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ |
125 V(MESSAGE_GET_COLUMN_NUMBER_INDEX, JSFunction, message_get_column_number) \ | 124 V(MESSAGE_GET_COLUMN_NUMBER_INDEX, JSFunction, message_get_column_number) \ |
126 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ | 125 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ |
127 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ | 126 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ |
128 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ | 127 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ |
129 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ | 128 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ |
130 native_object_notifier_perform_change) \ | 129 native_object_notifier_perform_change) \ |
131 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ | 130 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ |
(...skipping 13 matching lines...) Expand all Loading... |
145 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 144 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
146 promise_has_user_defined_reject_handler) \ | 145 promise_has_user_defined_reject_handler) \ |
147 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 146 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
148 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 147 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
149 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 148 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
150 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 149 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
151 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 150 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
152 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 151 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
153 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 152 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
154 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 153 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
155 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ | |
156 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 154 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
157 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ | 155 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ |
158 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 156 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 157 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
160 to_complete_property_descriptor) \ | 158 to_complete_property_descriptor) \ |
161 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 159 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
162 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 160 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
163 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ | 161 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ |
164 NATIVE_CONTEXT_JS_BUILTINS(V) | 162 NATIVE_CONTEXT_JS_BUILTINS(V) |
165 | 163 |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 #endif | 552 #endif |
555 | 553 |
556 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
557 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
558 }; | 556 }; |
559 | 557 |
560 } // namespace internal | 558 } // namespace internal |
561 } // namespace v8 | 559 } // namespace v8 |
562 | 560 |
563 #endif // V8_CONTEXTS_H_ | 561 #endif // V8_CONTEXTS_H_ |
OLD | NEW |