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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 113 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
114 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 114 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
115 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 115 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
116 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 116 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
117 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ | 117 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ |
118 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \ | 118 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \ |
119 wasm_compile_error_function) \ | 119 wasm_compile_error_function) \ |
120 V(WASM_RUNTIME_ERROR_FUNCTION_INDEX, JSFunction, wasm_runtime_error_function) | 120 V(WASM_RUNTIME_ERROR_FUNCTION_INDEX, JSFunction, wasm_runtime_error_function) |
121 | 121 |
122 #define NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) \ | 122 #define NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) \ |
| 123 V(TYPED_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, typed_array_key_iterator_map) \ |
123 V(FAST_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, fast_array_key_iterator_map) \ | 124 V(FAST_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, fast_array_key_iterator_map) \ |
124 V(GENERIC_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, array_key_iterator_map) \ | 125 V(GENERIC_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, array_key_iterator_map) \ |
125 V(TYPED_ARRAY_KEY_ITERATOR_MAP_INDEX, Map, typed_array_key_iterator_map) \ | |
126 \ | 126 \ |
127 V(UINT8_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ | 127 V(UINT8_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ |
128 uint8_array_key_value_iterator_map) \ | 128 uint8_array_key_value_iterator_map) \ |
129 V(INT8_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ | 129 V(INT8_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ |
130 int8_array_key_value_iterator_map) \ | 130 int8_array_key_value_iterator_map) \ |
131 V(UINT16_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ | 131 V(UINT16_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ |
132 uint16_array_key_value_iterator_map) \ | 132 uint16_array_key_value_iterator_map) \ |
133 V(INT16_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ | 133 V(INT16_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ |
134 int16_array_key_value_iterator_map) \ | 134 int16_array_key_value_iterator_map) \ |
135 V(UINT32_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ | 135 V(UINT32_ARRAY_KEY_VALUE_ITERATOR_MAP_INDEX, Map, \ |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 657 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
658 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 658 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
659 }; | 659 }; |
660 | 660 |
661 typedef Context::Field ContextField; | 661 typedef Context::Field ContextField; |
662 | 662 |
663 } // namespace internal | 663 } // namespace internal |
664 } // namespace v8 | 664 } // namespace v8 |
665 | 665 |
666 #endif // V8_CONTEXTS_H_ | 666 #endif // V8_CONTEXTS_H_ |
OLD | NEW |