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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 V(SECURITY_TOKEN_INDEX, Object, security_token) \ | 251 V(SECURITY_TOKEN_INDEX, Object, security_token) \ |
252 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ | 252 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ |
253 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ | 253 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ |
254 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 254 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
255 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 255 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
256 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ | 256 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ |
257 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 257 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
258 sloppy_function_without_prototype_map) \ | 258 sloppy_function_without_prototype_map) \ |
259 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ | 259 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ |
260 sloppy_function_with_readonly_prototype_map) \ | 260 sloppy_function_with_readonly_prototype_map) \ |
| 261 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ |
261 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ | 262 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ |
262 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ | 263 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ |
263 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 264 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
264 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ | 265 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
265 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 266 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
266 strict_function_without_prototype_map) \ | 267 strict_function_without_prototype_map) \ |
267 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ | 268 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
268 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 269 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
269 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ | 270 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ |
270 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ | 271 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 #endif | 588 #endif |
588 | 589 |
589 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 590 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
590 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 591 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
591 }; | 592 }; |
592 | 593 |
593 } // namespace internal | 594 } // namespace internal |
594 } // namespace v8 | 595 } // namespace v8 |
595 | 596 |
596 #endif // V8_CONTEXTS_H_ | 597 #endif // V8_CONTEXTS_H_ |
OLD | NEW |