| 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 // Heap-allocated activation contexts. | 71 // Heap-allocated activation contexts. | 
| 72 // | 72 // | 
| 73 // Contexts are implemented as FixedArray objects; the Context | 73 // Contexts are implemented as FixedArray objects; the Context | 
| 74 // class is a convenience interface casted on a FixedArray object. | 74 // class is a convenience interface casted on a FixedArray object. | 
| 75 // | 75 // | 
| 76 // Note: Context must have no virtual functions and Context objects | 76 // Note: Context must have no virtual functions and Context objects | 
| 77 // must always be allocated via Heap::AllocateContext() or | 77 // must always be allocated via Heap::AllocateContext() or | 
| 78 // Factory::NewContext. | 78 // Factory::NewContext. | 
| 79 | 79 | 
| 80 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V)                             \ | 80 #define NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V)                             \ | 
|  | 81   V(IS_ARRAYLIKE, JSFunction, is_arraylike)                               \ | 
| 81   V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ | 82   V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ | 
| 82   V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site)     \ | 83   V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site)     \ | 
| 83   V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error)                 \ | 84   V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error)                 \ | 
| 84   V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error)                   \ | 85   V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error)                   \ | 
| 85   V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply)                       \ | 86   V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply)                       \ | 
| 86   V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct)               \ | 87   V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct)               \ | 
|  | 88   V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property)   \ | 
|  | 89   V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property)   \ | 
| 87   V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments)                 \ | 90   V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments)                 \ | 
| 88   V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) | 91   V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) | 
| 89 | 92 | 
| 90 | 93 | 
| 91 #define NATIVE_CONTEXT_JS_BUILTINS(V)                                 \ | 94 #define NATIVE_CONTEXT_JS_BUILTINS(V)                                 \ | 
| 92   V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin)   \ | 95   V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin)   \ | 
| 93   V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction,               \ | 96   V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction,               \ | 
| 94     concat_iterable_to_array_builtin)                                 \ | 97     concat_iterable_to_array_builtin)                                 \ | 
| 95   V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction,                  \ | 98   V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction,                  \ | 
| 96     reflect_apply_prepare_builtin)                                    \ | 99     reflect_apply_prepare_builtin)                                    \ | 
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 589 #endif | 592 #endif | 
| 590 | 593 | 
| 591   STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 594   STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 
| 592   STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 595   STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 
| 593 }; | 596 }; | 
| 594 | 597 | 
| 595 }  // namespace internal | 598 }  // namespace internal | 
| 596 }  // namespace v8 | 599 }  // namespace v8 | 
| 597 | 600 | 
| 598 #endif  // V8_CONTEXTS_H_ | 601 #endif  // V8_CONTEXTS_H_ | 
| OLD | NEW | 
|---|