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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 V(OBJECT_KEYS, JSFunction, object_keys) \ | 82 V(OBJECT_KEYS, JSFunction, object_keys) \ |
83 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ | 83 V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ |
84 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ | 84 V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ |
85 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ | 85 V(REFLECT_DEFINE_PROPERTY_INDEX, JSFunction, reflect_define_property) \ |
86 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ | 86 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ |
87 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ | 87 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
88 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ | 88 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ |
89 V(MATH_EXP_INDEX, JSFunction, math_exp) \ | 89 V(MATH_EXP_INDEX, JSFunction, math_exp) \ |
90 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ | 90 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ |
91 V(MATH_LOG_INDEX, JSFunction, math_log) \ | 91 V(MATH_LOG_INDEX, JSFunction, math_log) \ |
| 92 V(MATH_ABS_INDEX, JSFunction, math_abs) \ |
92 V(MATH_SQRT_INDEX, JSFunction, math_sqrt) | 93 V(MATH_SQRT_INDEX, JSFunction, math_sqrt) |
93 | 94 |
94 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 95 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
95 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 96 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
96 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 97 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
97 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 98 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
98 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 99 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
99 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 100 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
100 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 101 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
101 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 102 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 #endif | 573 #endif |
573 | 574 |
574 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 575 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
575 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 576 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
576 }; | 577 }; |
577 | 578 |
578 } // namespace internal | 579 } // namespace internal |
579 } // namespace v8 | 580 } // namespace v8 |
580 | 581 |
581 #endif // V8_CONTEXTS_H_ | 582 #endif // V8_CONTEXTS_H_ |
OLD | NEW |