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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V) | 44 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V) |
45 | 45 |
46 #define DECLARE_CODE_AGE_BUILTIN(C, V) \ | 46 #define DECLARE_CODE_AGE_BUILTIN(C, V) \ |
47 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \ | 47 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \ |
48 UNINITIALIZED, kNoExtraICState) \ | 48 UNINITIALIZED, kNoExtraICState) \ |
49 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \ | 49 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \ |
50 UNINITIALIZED, kNoExtraICState) | 50 UNINITIALIZED, kNoExtraICState) |
51 | 51 |
52 | 52 |
53 // Define list of builtins implemented in C++. | 53 // Define list of builtins implemented in C++. |
54 #define BUILTIN_LIST_C(V) \ | 54 #define BUILTIN_LIST_C(V) \ |
55 V(Illegal, kNone) \ | 55 V(Illegal, kNone) \ |
56 \ | 56 \ |
57 V(EmptyFunction, kNone) \ | 57 V(EmptyFunction, kNone) \ |
58 \ | 58 \ |
59 V(ArrayConcat, kNone) \ | 59 V(ArrayConcat, kNone) \ |
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(ArrayBufferConstructor, kTarget) \ |
69 \ | 69 V(ArrayBufferConstructor_ConstructStub, kTargetAndNewTarget) \ |
70 V(FunctionConstructor, kTargetAndNewTarget) \ | 70 V(ArrayBufferIsView, kNone) \ |
71 V(FunctionPrototypeBind, kNone) \ | 71 \ |
72 V(FunctionPrototypeToString, kNone) \ | 72 V(DateToPrimitive, kNone) \ |
73 \ | 73 \ |
74 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \ | 74 V(FunctionConstructor, kTargetAndNewTarget) \ |
75 \ | 75 V(FunctionPrototypeBind, kNone) \ |
76 V(GlobalEval, kTarget) \ | 76 V(FunctionPrototypeToString, kNone) \ |
77 \ | 77 \ |
78 V(ObjectAssign, kNone) \ | 78 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \ |
79 V(ObjectCreate, kNone) \ | 79 \ |
80 V(ObjectProtoToString, kNone) \ | 80 V(GlobalEval, kTarget) \ |
81 \ | 81 \ |
82 V(ProxyConstructor, kNone) \ | 82 V(ObjectAssign, kNone) \ |
83 V(ProxyConstructor_ConstructStub, kTarget) \ | 83 V(ObjectCreate, kNone) \ |
84 \ | 84 V(ObjectProtoToString, kNone) \ |
85 V(ReflectDefineProperty, kNone) \ | 85 \ |
86 V(ReflectDeleteProperty, kNone) \ | 86 V(ProxyConstructor, kNone) \ |
87 V(ReflectGet, kNone) \ | 87 V(ProxyConstructor_ConstructStub, kTarget) \ |
88 V(ReflectGetOwnPropertyDescriptor, kNone) \ | 88 \ |
89 V(ReflectGetPrototypeOf, kNone) \ | 89 V(ReflectDefineProperty, kNone) \ |
90 V(ReflectHas, kNone) \ | 90 V(ReflectDeleteProperty, kNone) \ |
91 V(ReflectIsExtensible, kNone) \ | 91 V(ReflectGet, kNone) \ |
92 V(ReflectOwnKeys, kNone) \ | 92 V(ReflectGetOwnPropertyDescriptor, kNone) \ |
93 V(ReflectPreventExtensions, kNone) \ | 93 V(ReflectGetPrototypeOf, kNone) \ |
94 V(ReflectSet, kNone) \ | 94 V(ReflectHas, kNone) \ |
95 V(ReflectSetPrototypeOf, kNone) \ | 95 V(ReflectIsExtensible, kNone) \ |
96 \ | 96 V(ReflectOwnKeys, kNone) \ |
97 V(SymbolConstructor, kNone) \ | 97 V(ReflectPreventExtensions, kNone) \ |
98 V(SymbolConstructor_ConstructStub, kTarget) \ | 98 V(ReflectSet, kNone) \ |
99 \ | 99 V(ReflectSetPrototypeOf, kNone) \ |
100 V(HandleApiCall, kTarget) \ | 100 \ |
101 V(HandleApiCallConstruct, kTarget) \ | 101 V(SymbolConstructor, kNone) \ |
102 V(HandleApiCallAsFunction, kNone) \ | 102 V(SymbolConstructor_ConstructStub, kTarget) \ |
103 V(HandleApiCallAsConstructor, kNone) \ | 103 \ |
104 \ | 104 V(HandleApiCall, kTarget) \ |
105 V(RestrictedFunctionPropertiesThrower, kNone) \ | 105 V(HandleApiCallConstruct, kTarget) \ |
| 106 V(HandleApiCallAsFunction, kNone) \ |
| 107 V(HandleApiCallAsConstructor, kNone) \ |
| 108 \ |
| 109 V(RestrictedFunctionPropertiesThrower, kNone) \ |
106 V(RestrictedStrictArgumentsPropertiesThrower, kNone) | 110 V(RestrictedStrictArgumentsPropertiesThrower, kNone) |
107 | 111 |
108 // Define list of builtins implemented in assembly. | 112 // Define list of builtins implemented in assembly. |
109 #define BUILTIN_LIST_A(V) \ | 113 #define BUILTIN_LIST_A(V) \ |
110 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 114 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
111 \ | 115 \ |
112 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 116 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
113 \ | 117 \ |
114 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 118 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
115 kNoExtraICState) \ | 119 kNoExtraICState) \ |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 friend class BuiltinFunctionTable; | 418 friend class BuiltinFunctionTable; |
415 friend class Isolate; | 419 friend class Isolate; |
416 | 420 |
417 DISALLOW_COPY_AND_ASSIGN(Builtins); | 421 DISALLOW_COPY_AND_ASSIGN(Builtins); |
418 }; | 422 }; |
419 | 423 |
420 } // namespace internal | 424 } // namespace internal |
421 } // namespace v8 | 425 } // namespace v8 |
422 | 426 |
423 #endif // V8_BUILTINS_H_ | 427 #endif // V8_BUILTINS_H_ |
OLD | NEW |