| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // | 71 // |
| 72 // Note: Context must have no virtual functions and Context objects | 72 // Note: Context must have no virtual functions and Context objects |
| 73 // must always be allocated via Heap::AllocateContext() or | 73 // must always be allocated via Heap::AllocateContext() or |
| 74 // Factory::NewContext. | 74 // Factory::NewContext. |
| 75 | 75 |
| 76 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ | 76 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ |
| 77 V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ | 77 V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ |
| 78 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ | 78 V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ |
| 79 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ | 79 V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ |
| 80 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ | 80 V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ |
| 81 V(NON_NUMBER_TO_NUMBER_INDEX, JSFunction, non_number_to_number) \ | |
| 82 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ | 81 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ |
| 83 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ | 82 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ |
| 84 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ | 83 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
| 85 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ | 84 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) |
| 86 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) | |
| 87 | 85 |
| 88 | 86 |
| 89 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ | 87 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ |
| 90 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ | 88 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ |
| 91 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ | 89 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ |
| 92 concat_iterable_to_array_builtin) \ | 90 concat_iterable_to_array_builtin) \ |
| 93 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \ | 91 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \ |
| 94 reflect_apply_prepare_builtin) \ | 92 reflect_apply_prepare_builtin) \ |
| 95 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \ | 93 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \ |
| 96 reflect_construct_prepare_builtin) | 94 reflect_construct_prepare_builtin) |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 #endif | 547 #endif |
| 550 | 548 |
| 551 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 549 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 552 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 550 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 553 }; | 551 }; |
| 554 | 552 |
| 555 } // namespace internal | 553 } // namespace internal |
| 556 } // namespace v8 | 554 } // namespace v8 |
| 557 | 555 |
| 558 #endif // V8_CONTEXTS_H_ | 556 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |