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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ | 232 V(SELF_WEAK_CELL_INDEX, WeakCell, self_weak_cell) \ |
233 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ | 233 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ |
234 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 234 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
235 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 235 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
236 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ | 236 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ |
237 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 237 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
238 sloppy_function_without_prototype_map) \ | 238 sloppy_function_without_prototype_map) \ |
239 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ | 239 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ |
240 sloppy_function_with_readonly_prototype_map) \ | 240 sloppy_function_with_readonly_prototype_map) \ |
241 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ | 241 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ |
| 242 V(NATIVE_FUNCTION_MAP_INDEX, Map, native_function_map) \ |
242 V(SLOPPY_ASYNC_FUNCTION_MAP_INDEX, Map, sloppy_async_function_map) \ | 243 V(SLOPPY_ASYNC_FUNCTION_MAP_INDEX, Map, sloppy_async_function_map) \ |
243 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ | 244 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ |
244 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ | 245 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ |
245 V(STRICT_ASYNC_FUNCTION_MAP_INDEX, Map, strict_async_function_map) \ | 246 V(STRICT_ASYNC_FUNCTION_MAP_INDEX, Map, strict_async_function_map) \ |
246 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 247 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
247 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ | 248 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
248 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 249 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
249 strict_function_without_prototype_map) \ | 250 strict_function_without_prototype_map) \ |
250 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ | 251 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
251 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 252 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 #endif | 572 #endif |
572 | 573 |
573 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 574 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
574 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 575 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
575 }; | 576 }; |
576 | 577 |
577 } // namespace internal | 578 } // namespace internal |
578 } // namespace v8 | 579 } // namespace v8 |
579 | 580 |
580 #endif // V8_CONTEXTS_H_ | 581 #endif // V8_CONTEXTS_H_ |
OLD | NEW |