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

Side by Side Diff: src/builtins.h

Issue 1548623002: [runtime] Also migrate the Function and GeneratorFunction constructors to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix message tests. Created 4 years, 12 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(DateToPrimitive, kNone) \
69 \ 69 \
70 V(FunctionPrototypeToString, kNone) \ 70 V(FunctionConstructor, kTargetAndNewTarget) \
71 \ 71 V(FunctionPrototypeToString, kNone) \
72 V(GlobalEval, kTarget) \ 72 \
73 \ 73 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \
74 V(ObjectAssign, kNone) \ 74 \
75 V(ObjectProtoToString, kNone) \ 75 V(GlobalEval, kTarget) \
76 \ 76 \
77 V(ProxyConstructor, kNone) \ 77 V(ObjectAssign, kNone) \
78 V(ProxyConstructor_ConstructStub, kTarget) \ 78 V(ObjectProtoToString, kNone) \
79 \ 79 \
80 V(ReflectDefineProperty, kNone) \ 80 V(ProxyConstructor, kNone) \
81 V(ReflectDeleteProperty, kNone) \ 81 V(ProxyConstructor_ConstructStub, kTarget) \
82 V(ReflectGet, kNone) \ 82 \
83 V(ReflectGetOwnPropertyDescriptor, kNone) \ 83 V(ReflectDefineProperty, kNone) \
84 V(ReflectGetPrototypeOf, kNone) \ 84 V(ReflectDeleteProperty, kNone) \
85 V(ReflectHas, kNone) \ 85 V(ReflectGet, kNone) \
86 V(ReflectIsExtensible, kNone) \ 86 V(ReflectGetOwnPropertyDescriptor, kNone) \
87 V(ReflectOwnKeys, kNone) \ 87 V(ReflectGetPrototypeOf, kNone) \
88 V(ReflectPreventExtensions, kNone) \ 88 V(ReflectHas, kNone) \
89 V(ReflectSet, kNone) \ 89 V(ReflectIsExtensible, kNone) \
90 V(ReflectSetPrototypeOf, kNone) \ 90 V(ReflectOwnKeys, kNone) \
91 \ 91 V(ReflectPreventExtensions, kNone) \
92 V(SymbolConstructor, kNone) \ 92 V(ReflectSet, kNone) \
93 V(SymbolConstructor_ConstructStub, kTarget) \ 93 V(ReflectSetPrototypeOf, kNone) \
94 \ 94 \
95 V(HandleApiCall, kTarget) \ 95 V(SymbolConstructor, kNone) \
96 V(HandleApiCallConstruct, kTarget) \ 96 V(SymbolConstructor_ConstructStub, kTarget) \
97 V(HandleApiCallAsFunction, kNone) \ 97 \
98 V(HandleApiCallAsConstructor, kNone) \ 98 V(HandleApiCall, kTarget) \
99 \ 99 V(HandleApiCallConstruct, kTarget) \
100 V(RestrictedFunctionPropertiesThrower, kNone) \ 100 V(HandleApiCallAsFunction, kNone) \
101 V(HandleApiCallAsConstructor, kNone) \
102 \
103 V(RestrictedFunctionPropertiesThrower, kNone) \
101 V(RestrictedStrictArgumentsPropertiesThrower, kNone) 104 V(RestrictedStrictArgumentsPropertiesThrower, kNone)
102 105
103 // Define list of builtins implemented in assembly. 106 // Define list of builtins implemented in assembly.
104 #define BUILTIN_LIST_A(V) \ 107 #define BUILTIN_LIST_A(V) \
105 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 108 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
106 \ 109 \
107 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 110 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \
108 \ 111 \
109 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ 112 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \
110 kNoExtraICState) \ 113 kNoExtraICState) \
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 friend class BuiltinFunctionTable; 406 friend class BuiltinFunctionTable;
404 friend class Isolate; 407 friend class Isolate;
405 408
406 DISALLOW_COPY_AND_ASSIGN(Builtins); 409 DISALLOW_COPY_AND_ASSIGN(Builtins);
407 }; 410 };
408 411
409 } // namespace internal 412 } // namespace internal
410 } // namespace v8 413 } // namespace v8
411 414
412 #endif // V8_BUILTINS_H_ 415 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698