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