Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: src/contexts.h

Issue 1333843002: [runtime] Move binary operator fallbacks into the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: No need for frame states in bytecode handlers. Add test case. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) 90 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun)
91 91
92 92
93 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ 93 #define NATIVE_CONTEXT_JS_BUILTINS(V) \
94 V(ADD_BUILTIN_INDEX, JSFunction, add_builtin) \ 94 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \
95 V(ADD_STRONG_BUILTIN_INDEX, JSFunction, add_strong_builtin) \ 95 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \
96 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ 96 call_function_proxy_as_constructor_builtin) \
97 V(BIT_AND_BUILTIN_INDEX, JSFunction, bit_and_builtin) \ 97 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \
98 V(BIT_AND_STRONG_BUILTIN_INDEX, JSFunction, bit_and_strong_builtin) \ 98 call_non_function_as_constructor_builtin) \
99 V(BIT_OR_BUILTIN_INDEX, JSFunction, bit_or_builtin) \ 99 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \
100 V(BIT_OR_STRONG_BUILTIN_INDEX, JSFunction, bit_or_strong_builtin) \ 100 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \
101 V(BIT_XOR_BUILTIN_INDEX, JSFunction, bit_xor_builtin) \ 101 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \
102 V(BIT_XOR_STRONG_BUILTIN_INDEX, JSFunction, bit_xor_strong_builtin) \ 102 concat_iterable_to_array_builtin) \
103 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \ 103 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \
104 call_function_proxy_as_constructor_builtin) \ 104 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \
105 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \ 105 reflect_apply_prepare_builtin) \
106 call_non_function_as_constructor_builtin) \ 106 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \
107 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \ 107 reflect_construct_prepare_builtin) \
108 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \ 108 V(STACK_OVERFLOW_BUILTIN_INDEX, JSFunction, stack_overflow_builtin) \
109 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ 109 V(STRING_ADD_LEFT_BUILTIN_INDEX, JSFunction, string_add_left_builtin) \
110 concat_iterable_to_array_builtin) \ 110 V(STRING_ADD_RIGHT_BUILTIN_INDEX, JSFunction, string_add_right_builtin)
111 V(DIV_BUILTIN_INDEX, JSFunction, div_builtin) \
112 V(DIV_STRONG_BUILTIN_INDEX, JSFunction, div_strong_builtin) \
113 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \
114 V(MOD_BUILTIN_INDEX, JSFunction, mod_builtin) \
115 V(MOD_STRONG_BUILTIN_INDEX, JSFunction, mod_strong_builtin) \
116 V(MUL_BUILTIN_INDEX, JSFunction, mul_builtin) \
117 V(MUL_STRONG_BUILTIN_INDEX, JSFunction, mul_strong_builtin) \
118 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \
119 reflect_apply_prepare_builtin) \
120 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \
121 reflect_construct_prepare_builtin) \
122 V(SAR_BUILTIN_INDEX, JSFunction, sar_builtin) \
123 V(SAR_STRONG_BUILTIN_INDEX, JSFunction, sar_strong_builtin) \
124 V(SHL_BUILTIN_INDEX, JSFunction, shl_builtin) \
125 V(SHL_STRONG_BUILTIN_INDEX, JSFunction, shl_strong_builtin) \
126 V(SHR_BUILTIN_INDEX, JSFunction, shr_builtin) \
127 V(SHR_STRONG_BUILTIN_INDEX, JSFunction, shr_strong_builtin) \
128 V(STACK_OVERFLOW_BUILTIN_INDEX, JSFunction, stack_overflow_builtin) \
129 V(STRING_ADD_LEFT_BUILTIN_INDEX, JSFunction, string_add_left_builtin) \
130 V(STRING_ADD_RIGHT_BUILTIN_INDEX, JSFunction, string_add_right_builtin) \
131 V(SUB_BUILTIN_INDEX, JSFunction, sub_builtin) \
132 V(SUB_STRONG_BUILTIN_INDEX, JSFunction, sub_strong_builtin)
133 111
134 112
135 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 113 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
136 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 114 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
137 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 115 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
138 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 116 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
139 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 117 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
140 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ 118 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
141 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ 119 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
142 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ 120 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 560 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
583 #endif 561 #endif
584 562
585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 563 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 564 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
587 }; 565 };
588 566
589 } } // namespace v8::internal 567 } } // namespace v8::internal
590 568
591 #endif // V8_CONTEXTS_H_ 569 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698