| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \ | 87 V(OBJECT_IS_EXTENSIBLE, JSFunction, object_is_extensible) \ |
| 88 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \ | 88 V(OBJECT_IS_FROZEN, JSFunction, object_is_frozen) \ |
| 89 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ | 89 V(OBJECT_IS_SEALED, JSFunction, object_is_sealed) \ |
| 90 V(OBJECT_KEYS, JSFunction, object_keys) \ | 90 V(OBJECT_KEYS, JSFunction, object_keys) \ |
| 91 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ | 91 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ |
| 92 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ | 92 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ |
| 93 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ | 93 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ |
| 94 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ | 94 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ |
| 95 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ | 95 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
| 96 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ | 96 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ |
| 97 V(ORDINARY_HAS_INSTANCE_INDEX, JSFunction, ordinary_has_instance) | 97 V(ORDINARY_HAS_INSTANCE_INDEX, JSFunction, ordinary_has_instance) \ |
| 98 V(MATH_SQRT, JSFunction, math_sqrt) |
| 98 | 99 |
| 99 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 100 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
| 100 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 101 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
| 101 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 102 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
| 102 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 103 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
| 103 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 104 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
| 104 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 105 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
| 105 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 106 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
| 106 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 107 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
| 107 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 108 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 #endif | 565 #endif |
| 565 | 566 |
| 566 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 567 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 567 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 568 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 568 }; | 569 }; |
| 569 | 570 |
| 570 } // namespace internal | 571 } // namespace internal |
| 571 } // namespace v8 | 572 } // namespace v8 |
| 572 | 573 |
| 573 #endif // V8_CONTEXTS_H_ | 574 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |