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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject) | 73 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject) |
74 | 74 |
75 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 75 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
76 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 76 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
77 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 77 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
78 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 78 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
79 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 79 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
80 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 80 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
81 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 81 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
82 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 82 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
| 83 V(ARRAY_ENTRIES_ITERATOR_INDEX, JSFunction, array_entries_iterator) \ |
| 84 V(ARRAY_FOR_EACH_ITERATOR_INDEX, JSFunction, array_for_each_iterator) \ |
| 85 V(ARRAY_KEYS_ITERATOR_INDEX, JSFunction, array_keys_iterator) \ |
83 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 86 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
84 V(ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX, JSFunction, \ | 87 V(ASYNC_FUNCTION_AWAIT_CAUGHT_INDEX, JSFunction, \ |
85 async_function_await_caught) \ | 88 async_function_await_caught) \ |
86 V(ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX, JSFunction, \ | 89 V(ASYNC_FUNCTION_AWAIT_UNCAUGHT_INDEX, JSFunction, \ |
87 async_function_await_uncaught) \ | 90 async_function_await_uncaught) \ |
88 V(ASYNC_FUNCTION_PROMISE_CREATE_INDEX, JSFunction, \ | 91 V(ASYNC_FUNCTION_PROMISE_CREATE_INDEX, JSFunction, \ |
89 async_function_promise_create) \ | 92 async_function_promise_create) \ |
90 V(ASYNC_FUNCTION_PROMISE_RELEASE_INDEX, JSFunction, \ | 93 V(ASYNC_FUNCTION_PROMISE_RELEASE_INDEX, JSFunction, \ |
91 async_function_promise_release) \ | 94 async_function_promise_release) \ |
92 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 95 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 696 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
694 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 697 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
695 }; | 698 }; |
696 | 699 |
697 typedef Context::Field ContextField; | 700 typedef Context::Field ContextField; |
698 | 701 |
699 } // namespace internal | 702 } // namespace internal |
700 } // namespace v8 | 703 } // namespace v8 |
701 | 704 |
702 #endif // V8_CONTEXTS_H_ | 705 #endif // V8_CONTEXTS_H_ |
OLD | NEW |