OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_H_ |
6 #define V8_BUILTINS_H_ | 6 #define V8_BUILTINS_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 V(ArrayIsArray, kNone) \ | 60 V(ArrayIsArray, kNone) \ |
61 V(ArrayPop, kNone) \ | 61 V(ArrayPop, kNone) \ |
62 V(ArrayPush, kNone) \ | 62 V(ArrayPush, kNone) \ |
63 V(ArrayShift, kNone) \ | 63 V(ArrayShift, kNone) \ |
64 V(ArraySlice, kNone) \ | 64 V(ArraySlice, kNone) \ |
65 V(ArraySplice, kNone) \ | 65 V(ArraySplice, kNone) \ |
66 V(ArrayUnshift, kNone) \ | 66 V(ArrayUnshift, kNone) \ |
67 \ | 67 \ |
68 V(DateToPrimitive, kNone) \ | 68 V(DateToPrimitive, kNone) \ |
69 \ | 69 \ |
| 70 V(FunctionPrototypeToString, kNone) \ |
| 71 \ |
70 V(ObjectAssign, kNone) \ | 72 V(ObjectAssign, kNone) \ |
71 V(ObjectProtoToString, kNone) \ | 73 V(ObjectProtoToString, kNone) \ |
72 \ | 74 \ |
73 V(ProxyConstructor, kNone) \ | 75 V(ProxyConstructor, kNone) \ |
74 V(ProxyConstructor_ConstructStub, kTarget) \ | 76 V(ProxyConstructor_ConstructStub, kTarget) \ |
75 \ | 77 \ |
76 V(ReflectDefineProperty, kNone) \ | 78 V(ReflectDefineProperty, kNone) \ |
77 V(ReflectDeleteProperty, kNone) \ | 79 V(ReflectDeleteProperty, kNone) \ |
78 V(ReflectGet, kNone) \ | 80 V(ReflectGet, kNone) \ |
79 V(ReflectGetOwnPropertyDescriptor, kNone) \ | 81 V(ReflectGetOwnPropertyDescriptor, kNone) \ |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 kNoExtraICState) \ | 163 kNoExtraICState) \ |
162 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ | 164 V(KeyedStoreIC_Megamorphic, KEYED_STORE_IC, MEGAMORPHIC, kNoExtraICState) \ |
163 \ | 165 \ |
164 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ | 166 V(KeyedStoreIC_Initialize_Strict, KEYED_STORE_IC, UNINITIALIZED, \ |
165 StoreICState::kStrictModeState) \ | 167 StoreICState::kStrictModeState) \ |
166 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ | 168 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ |
167 StoreICState::kStrictModeState) \ | 169 StoreICState::kStrictModeState) \ |
168 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ | 170 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ |
169 StoreICState::kStrictModeState) \ | 171 StoreICState::kStrictModeState) \ |
170 \ | 172 \ |
171 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 173 V(FunctionPrototypeApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
172 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 174 V(FunctionPrototypeCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
173 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 175 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
174 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 176 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
175 \ | 177 \ |
176 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 178 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
177 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 179 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
178 \ | 180 \ |
179 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 181 V(StringConstructor, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
180 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 182 V(StringConstructor_ConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
181 \ | 183 \ |
182 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 184 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 | 352 |
351 // ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) | 353 // ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget) |
352 static void Generate_ConstructFunction(MacroAssembler* masm); | 354 static void Generate_ConstructFunction(MacroAssembler* masm); |
353 // ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) | 355 // ES6 section 9.5.14 [[Construct]] ( argumentsList, newTarget) |
354 static void Generate_ConstructProxy(MacroAssembler* masm); | 356 static void Generate_ConstructProxy(MacroAssembler* masm); |
355 // ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) | 357 // ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget]) |
356 static void Generate_Construct(MacroAssembler* masm); | 358 static void Generate_Construct(MacroAssembler* masm); |
357 | 359 |
358 static void Generate_HandleFastApiCall(MacroAssembler* masm); | 360 static void Generate_HandleFastApiCall(MacroAssembler* masm); |
359 | 361 |
360 static void Generate_FunctionCall(MacroAssembler* masm); | 362 static void Generate_FunctionPrototypeApply(MacroAssembler* masm); |
361 static void Generate_FunctionApply(MacroAssembler* masm); | 363 static void Generate_FunctionPrototypeCall(MacroAssembler* masm); |
362 static void Generate_ReflectApply(MacroAssembler* masm); | 364 static void Generate_ReflectApply(MacroAssembler* masm); |
363 static void Generate_ReflectConstruct(MacroAssembler* masm); | 365 static void Generate_ReflectConstruct(MacroAssembler* masm); |
364 | 366 |
365 static void Generate_InternalArrayCode(MacroAssembler* masm); | 367 static void Generate_InternalArrayCode(MacroAssembler* masm); |
366 static void Generate_ArrayCode(MacroAssembler* masm); | 368 static void Generate_ArrayCode(MacroAssembler* masm); |
367 | 369 |
368 static void Generate_StringConstructor(MacroAssembler* masm); | 370 static void Generate_StringConstructor(MacroAssembler* masm); |
369 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 371 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
370 static void Generate_OnStackReplacement(MacroAssembler* masm); | 372 static void Generate_OnStackReplacement(MacroAssembler* masm); |
371 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); | 373 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); |
(...skipping 27 matching lines...) Expand all Loading... |
399 friend class BuiltinFunctionTable; | 401 friend class BuiltinFunctionTable; |
400 friend class Isolate; | 402 friend class Isolate; |
401 | 403 |
402 DISALLOW_COPY_AND_ASSIGN(Builtins); | 404 DISALLOW_COPY_AND_ASSIGN(Builtins); |
403 }; | 405 }; |
404 | 406 |
405 } // namespace internal | 407 } // namespace internal |
406 } // namespace v8 | 408 } // namespace v8 |
407 | 409 |
408 #endif // V8_BUILTINS_H_ | 410 #endif // V8_BUILTINS_H_ |
OLD | NEW |