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

Side by Side Diff: src/code-factory.h

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 6 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/builtins/builtins-string-gen.cc ('k') | src/code-factory.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 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_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/callable.h" 10 #include "src/callable.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // Code stubs. Add methods here as needed to reduce dependency on 69 // Code stubs. Add methods here as needed to reduce dependency on
70 // code-stubs.h. 70 // code-stubs.h.
71 static Callable InstanceOf(Isolate* isolate); 71 static Callable InstanceOf(Isolate* isolate);
72 static Callable OrdinaryHasInstance(Isolate* isolate); 72 static Callable OrdinaryHasInstance(Isolate* isolate);
73 73
74 static Callable StringFromCharCode(Isolate* isolate); 74 static Callable StringFromCharCode(Isolate* isolate);
75 75
76 static Callable GetProperty(Isolate* isolate); 76 static Callable GetProperty(Isolate* isolate);
77 77
78 static Callable ToBoolean(Isolate* isolate);
79
80 static Callable ToNumber(Isolate* isolate); 78 static Callable ToNumber(Isolate* isolate);
81 static Callable NonNumberToNumber(Isolate* isolate); 79 static Callable NonNumberToNumber(Isolate* isolate);
82 static Callable StringToNumber(Isolate* isolate); 80 static Callable StringToNumber(Isolate* isolate);
83 static Callable ToString(Isolate* isolate);
84 static Callable ToName(Isolate* isolate);
85 static Callable ToInteger(Isolate* isolate); 81 static Callable ToInteger(Isolate* isolate);
86 static Callable ToLength(Isolate* isolate); 82 static Callable ToLength(Isolate* isolate);
87 static Callable ToObject(Isolate* isolate);
88 static Callable NonPrimitiveToPrimitive( 83 static Callable NonPrimitiveToPrimitive(
89 Isolate* isolate, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 84 Isolate* isolate, ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
90 static Callable OrdinaryToPrimitive(Isolate* isolate, 85 static Callable OrdinaryToPrimitive(Isolate* isolate,
91 OrdinaryToPrimitiveHint hint); 86 OrdinaryToPrimitiveHint hint);
92 static Callable NumberToString(Isolate* isolate); 87 static Callable NumberToString(Isolate* isolate);
93 88
94 static Callable Add(Isolate* isolate); 89 static Callable Add(Isolate* isolate);
95 static Callable Subtract(Isolate* isolate); 90 static Callable Subtract(Isolate* isolate);
96 static Callable Multiply(Isolate* isolate); 91 static Callable Multiply(Isolate* isolate);
97 static Callable Divide(Isolate* isolate); 92 static Callable Divide(Isolate* isolate);
98 static Callable Modulus(Isolate* isolate); 93 static Callable Modulus(Isolate* isolate);
99 static Callable ShiftRight(Isolate* isolate); 94 static Callable ShiftRight(Isolate* isolate);
100 static Callable ShiftRightLogical(Isolate* isolate); 95 static Callable ShiftRightLogical(Isolate* isolate);
101 static Callable ShiftLeft(Isolate* isolate); 96 static Callable ShiftLeft(Isolate* isolate);
102 static Callable BitwiseAnd(Isolate* isolate); 97 static Callable BitwiseAnd(Isolate* isolate);
103 static Callable BitwiseOr(Isolate* isolate); 98 static Callable BitwiseOr(Isolate* isolate);
104 static Callable BitwiseXor(Isolate* isolate); 99 static Callable BitwiseXor(Isolate* isolate);
105 static Callable LessThan(Isolate* isolate); 100 static Callable LessThan(Isolate* isolate);
106 static Callable LessThanOrEqual(Isolate* isolate); 101 static Callable LessThanOrEqual(Isolate* isolate);
107 static Callable GreaterThan(Isolate* isolate); 102 static Callable GreaterThan(Isolate* isolate);
108 static Callable GreaterThanOrEqual(Isolate* isolate); 103 static Callable GreaterThanOrEqual(Isolate* isolate);
109 static Callable Equal(Isolate* isolate); 104 static Callable Equal(Isolate* isolate);
110 static Callable StrictEqual(Isolate* isolate); 105 static Callable StrictEqual(Isolate* isolate);
111 106
112 static Callable StringAdd(Isolate* isolate, 107 static Callable StringAdd(Isolate* isolate,
113 StringAddFlags flags = STRING_ADD_CHECK_NONE, 108 StringAddFlags flags = STRING_ADD_CHECK_NONE,
114 PretenureFlag pretenure_flag = NOT_TENURED); 109 PretenureFlag pretenure_flag = NOT_TENURED);
115 static Callable StringCharAt(Isolate* isolate);
116 static Callable StringCharCodeAt(Isolate* isolate);
117 static Callable StringCompare(Isolate* isolate, Token::Value token); 110 static Callable StringCompare(Isolate* isolate, Token::Value token);
118 static Callable StringEqual(Isolate* isolate);
119 static Callable StringLessThan(Isolate* isolate);
120 static Callable StringLessThanOrEqual(Isolate* isolate);
121 static Callable StringGreaterThan(Isolate* isolate);
122 static Callable StringGreaterThanOrEqual(Isolate* isolate);
123 static Callable SubString(Isolate* isolate); 111 static Callable SubString(Isolate* isolate);
124 static Callable StringIndexOf(Isolate* isolate); 112 static Callable StringIndexOf(Isolate* isolate);
125 113
126 static Callable RegExpReplace(Isolate* isolate);
127 static Callable RegExpSplit(Isolate* isolate);
128
129 static Callable ClassOf(Isolate* isolate); 114 static Callable ClassOf(Isolate* isolate);
130 static Callable Typeof(Isolate* isolate);
131 static Callable GetSuperConstructor(Isolate* isolate); 115 static Callable GetSuperConstructor(Isolate* isolate);
132 116
133 static Callable FastCloneRegExp(Isolate* isolate); 117 static Callable FastCloneRegExp(Isolate* isolate);
134 static Callable FastCloneShallowArray(Isolate* isolate, 118 static Callable FastCloneShallowArray(Isolate* isolate,
135 AllocationSiteMode allocation_mode); 119 AllocationSiteMode allocation_mode);
136 static Callable FastCloneShallowObject(Isolate* isolate); 120 static Callable FastCloneShallowObject(Isolate* isolate);
137 121
138 static Callable FastNewFunctionContext(Isolate* isolate, 122 static Callable FastNewFunctionContext(Isolate* isolate,
139 ScopeType scope_type); 123 ScopeType scope_type);
140 static Callable FastNewClosure(Isolate* isolate); 124 static Callable FastNewClosure(Isolate* isolate);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 Isolate* isolate, InterpreterPushArgsMode mode); 165 Isolate* isolate, InterpreterPushArgsMode mode);
182 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate); 166 static Callable InterpreterPushArgsThenConstructArray(Isolate* isolate);
183 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); 167 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1);
184 static Callable InterpreterOnStackReplacement(Isolate* isolate); 168 static Callable InterpreterOnStackReplacement(Isolate* isolate);
185 169
186 static Callable ArrayConstructor(Isolate* isolate); 170 static Callable ArrayConstructor(Isolate* isolate);
187 static Callable ArrayPop(Isolate* isolate); 171 static Callable ArrayPop(Isolate* isolate);
188 static Callable ArrayPush(Isolate* isolate); 172 static Callable ArrayPush(Isolate* isolate);
189 static Callable ArrayShift(Isolate* isolate); 173 static Callable ArrayShift(Isolate* isolate);
190 static Callable FunctionPrototypeBind(Isolate* isolate); 174 static Callable FunctionPrototypeBind(Isolate* isolate);
191 static Callable PromiseHandleReject(Isolate* isolate);
192
193 static Callable AsyncGeneratorResolve(Isolate* isolate);
194 static Callable AsyncGeneratorReject(Isolate* isolate);
195 static Callable AsyncGeneratorResumeNext(Isolate* isolate);
196 }; 175 };
197 176
198 } // namespace internal 177 } // namespace internal
199 } // namespace v8 178 } // namespace v8
200 179
201 #endif // V8_CODE_FACTORY_H_ 180 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-string-gen.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698