| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ | 112 V(MESSAGE_GET_LINE_NUMBER_INDEX, JSFunction, message_get_line_number) \ |
| 113 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ | 113 V(MESSAGE_GET_SOURCE_LINE_INDEX, JSFunction, message_get_source_line) \ |
| 114 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ | 114 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ |
| 115 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ | 115 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ |
| 116 native_object_notifier_perform_change) \ | 116 native_object_notifier_perform_change) \ |
| 117 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ | 117 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ |
| 118 V(NO_SIDE_EFFECTS_TO_STRING_FUN_INDEX, JSFunction, \ | 118 V(NO_SIDE_EFFECTS_TO_STRING_FUN_INDEX, JSFunction, \ |
| 119 no_side_effects_to_string_fun) \ | 119 no_side_effects_to_string_fun) \ |
| 120 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 120 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
| 121 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 121 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
| 122 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, observers_begin_perform_splice) \ | |
| 123 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ | |
| 124 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ | |
| 125 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | |
| 126 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 122 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
| 127 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ | 123 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ |
| 128 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 124 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
| 129 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 125 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
| 130 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 126 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
| 131 promise_has_user_defined_reject_handler) \ | 127 promise_has_user_defined_reject_handler) \ |
| 132 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 128 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
| 133 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 129 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
| 134 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 130 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
| 135 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 131 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 #endif | 556 #endif |
| 561 | 557 |
| 562 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 558 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 563 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 559 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 564 }; | 560 }; |
| 565 | 561 |
| 566 } // namespace internal | 562 } // namespace internal |
| 567 } // namespace v8 | 563 } // namespace v8 |
| 568 | 564 |
| 569 #endif // V8_CONTEXTS_H_ | 565 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |