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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 | 96 |
97 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 97 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
98 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 98 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
99 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 99 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
100 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 100 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
101 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 101 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
102 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 102 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
103 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 103 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
104 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 104 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
| 105 V(ARRAY_KEYS_ITERATOR_INDEX, JSFunction, array_keys_iterator) \ |
105 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 106 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
| 107 V(ARRAY_ENTRIES_ITERATOR_INDEX, JSFunction, array_entries_iterator) \ |
106 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ | 108 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ |
107 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 109 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
108 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 110 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
109 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 111 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
110 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ | 112 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ |
111 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ | 113 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ |
112 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 114 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
113 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 115 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
114 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ | 116 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ |
115 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ | 117 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 #endif | 552 #endif |
551 | 553 |
552 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
553 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
554 }; | 556 }; |
555 | 557 |
556 } // namespace internal | 558 } // namespace internal |
557 } // namespace v8 | 559 } // namespace v8 |
558 | 560 |
559 #endif // V8_CONTEXTS_H_ | 561 #endif // V8_CONTEXTS_H_ |
OLD | NEW |