| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) \ | 81 V(NON_NUMBER_TO_NUMBER_INDEX, JSFunction, non_number_to_number) \ |
| 82 V(NON_STRING_TO_STRING_INDEX, JSFunction, non_string_to_string) \ | 82 V(NON_STRING_TO_STRING_INDEX, JSFunction, non_string_to_string) \ |
| 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(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ | 85 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
| 86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ | 86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ |
| 87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ | 87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ |
| 88 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ | 88 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
| 89 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \ | 89 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) |
| 90 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) | |
| 91 | 90 |
| 92 | 91 |
| 93 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ | 92 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ |
| 94 V(ADD_BUILTIN_INDEX, JSFunction, add_builtin) \ | 93 V(ADD_BUILTIN_INDEX, JSFunction, add_builtin) \ |
| 95 V(ADD_STRONG_BUILTIN_INDEX, JSFunction, add_strong_builtin) \ | 94 V(ADD_STRONG_BUILTIN_INDEX, JSFunction, add_strong_builtin) \ |
| 96 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ | 95 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ |
| 97 V(BIT_AND_BUILTIN_INDEX, JSFunction, bit_and_builtin) \ | 96 V(BIT_AND_BUILTIN_INDEX, JSFunction, bit_and_builtin) \ |
| 98 V(BIT_AND_STRONG_BUILTIN_INDEX, JSFunction, bit_and_strong_builtin) \ | 97 V(BIT_AND_STRONG_BUILTIN_INDEX, JSFunction, bit_and_strong_builtin) \ |
| 99 V(BIT_OR_BUILTIN_INDEX, JSFunction, bit_or_builtin) \ | 98 V(BIT_OR_BUILTIN_INDEX, JSFunction, bit_or_builtin) \ |
| 100 V(BIT_OR_STRONG_BUILTIN_INDEX, JSFunction, bit_or_strong_builtin) \ | 99 V(BIT_OR_STRONG_BUILTIN_INDEX, JSFunction, bit_or_strong_builtin) \ |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 638 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
| 640 #endif | 639 #endif |
| 641 | 640 |
| 642 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 641 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 643 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 642 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 644 }; | 643 }; |
| 645 | 644 |
| 646 } } // namespace v8::internal | 645 } } // namespace v8::internal |
| 647 | 646 |
| 648 #endif // V8_CONTEXTS_H_ | 647 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |