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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 200 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
201 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 201 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
202 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ | 202 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ |
203 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 203 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
204 sloppy_function_without_prototype_map) \ | 204 sloppy_function_without_prototype_map) \ |
205 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ | 205 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ |
206 sloppy_function_with_readonly_prototype_map) \ | 206 sloppy_function_with_readonly_prototype_map) \ |
207 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ | 207 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ |
208 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ | 208 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ |
209 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ | 209 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ |
| 210 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ |
| 211 V(WASM_MEMORY_CONSTRUCTOR_INDEX, JSFunction, wasm_memory_constructor) \ |
210 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ | 212 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ |
| 213 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ |
| 214 V(WASM_MEMORY_SYM_INDEX, Symbol, wasm_memory_sym) \ |
211 V(WASM_INSTANCE_SYM_INDEX, Symbol, wasm_instance_sym) \ | 215 V(WASM_INSTANCE_SYM_INDEX, Symbol, wasm_instance_sym) \ |
212 V(SLOPPY_ASYNC_FUNCTION_MAP_INDEX, Map, sloppy_async_function_map) \ | 216 V(SLOPPY_ASYNC_FUNCTION_MAP_INDEX, Map, sloppy_async_function_map) \ |
213 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ | 217 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ |
214 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ | 218 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ |
215 V(STRICT_ASYNC_FUNCTION_MAP_INDEX, Map, strict_async_function_map) \ | 219 V(STRICT_ASYNC_FUNCTION_MAP_INDEX, Map, strict_async_function_map) \ |
216 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 220 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
217 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ | 221 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
218 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 222 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
219 strict_function_without_prototype_map) \ | 223 strict_function_without_prototype_map) \ |
220 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ | 224 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 #endif | 551 #endif |
548 | 552 |
549 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 553 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
550 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 554 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
551 }; | 555 }; |
552 | 556 |
553 } // namespace internal | 557 } // namespace internal |
554 } // namespace v8 | 558 } // namespace v8 |
555 | 559 |
556 #endif // V8_CONTEXTS_H_ | 560 #endif // V8_CONTEXTS_H_ |
OLD | NEW |