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_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 ASM(StringToNumber) \ | 177 ASM(StringToNumber) \ |
178 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ | 178 TFS(NonNumberToNumber, BUILTIN, kNoExtraICState, TypeConversion) \ |
179 ASM(ToNumber) \ | 179 ASM(ToNumber) \ |
180 \ | 180 \ |
181 /* Built-in functions for Javascript */ \ | 181 /* Built-in functions for Javascript */ \ |
182 /* Special internal builtins */ \ | 182 /* Special internal builtins */ \ |
183 CPP(EmptyFunction) \ | 183 CPP(EmptyFunction) \ |
184 CPP(Illegal) \ | 184 CPP(Illegal) \ |
185 CPP(RestrictedFunctionPropertiesThrower) \ | 185 CPP(RestrictedFunctionPropertiesThrower) \ |
186 CPP(RestrictedStrictArgumentsPropertiesThrower) \ | 186 CPP(RestrictedStrictArgumentsPropertiesThrower) \ |
| 187 CPP(UnsupportedThrower) \ |
187 \ | 188 \ |
188 /* Array */ \ | 189 /* Array */ \ |
189 ASM(ArrayCode) \ | 190 ASM(ArrayCode) \ |
190 ASM(InternalArrayCode) \ | 191 ASM(InternalArrayCode) \ |
191 CPP(ArrayConcat) \ | 192 CPP(ArrayConcat) \ |
192 /* ES6 section 22.1.2.2 Array.isArray */ \ | 193 /* ES6 section 22.1.2.2 Array.isArray */ \ |
193 TFJ(ArrayIsArray, 2) \ | 194 TFJ(ArrayIsArray, 2) \ |
194 CPP(ArrayPop) \ | 195 CPP(ArrayPop) \ |
195 CPP(ArrayPush) \ | 196 CPP(ArrayPush) \ |
196 CPP(ArrayShift) \ | 197 CPP(ArrayShift) \ |
197 CPP(ArraySlice) \ | 198 CPP(ArraySlice) \ |
198 CPP(ArraySplice) \ | 199 CPP(ArraySplice) \ |
199 CPP(ArrayUnshift) \ | 200 CPP(ArrayUnshift) \ |
200 \ | 201 \ |
201 /* ArrayBuffer */ \ | 202 /* ArrayBuffer */ \ |
202 CPP(ArrayBufferConstructor) \ | 203 CPP(ArrayBufferConstructor) \ |
203 CPP(ArrayBufferConstructor_ConstructStub) \ | 204 CPP(ArrayBufferConstructor_ConstructStub) \ |
204 CPP(ArrayBufferPrototypeGetByteLength) \ | 205 CPP(ArrayBufferPrototypeGetByteLength) \ |
205 CPP(ArrayBufferIsView) \ | 206 CPP(ArrayBufferIsView) \ |
206 \ | 207 \ |
207 /* Boolean */ \ | 208 /* Boolean */ \ |
208 CPP(BooleanConstructor) \ | 209 CPP(BooleanConstructor) \ |
209 CPP(BooleanConstructor_ConstructStub) \ | 210 CPP(BooleanConstructor_ConstructStub) \ |
210 /* ES6 section 19.3.3.2 Boolean.prototype.toString ( ) */ \ | 211 /* ES6 section 19.3.3.2 Boolean.prototype.toString ( ) */ \ |
211 TFJ(BooleanPrototypeToString, 1) \ | 212 TFJ(BooleanPrototypeToString, 1) \ |
212 /* ES6 section 19.3.3.3 Boolean.prototype.valueOf ( ) */ \ | 213 /* ES6 section 19.3.3.3 Boolean.prototype.valueOf ( ) */ \ |
213 TFJ(BooleanPrototypeValueOf, 1) \ | 214 TFJ(BooleanPrototypeValueOf, 1) \ |
214 \ | 215 \ |
215 /* CallSite */ \ | 216 /* CallSite */ \ |
216 CPP(CallSiteConstructor) \ | |
217 CPP(CallSitePrototypeGetColumnNumber) \ | 217 CPP(CallSitePrototypeGetColumnNumber) \ |
218 CPP(CallSitePrototypeGetEvalOrigin) \ | 218 CPP(CallSitePrototypeGetEvalOrigin) \ |
219 CPP(CallSitePrototypeGetFileName) \ | 219 CPP(CallSitePrototypeGetFileName) \ |
220 CPP(CallSitePrototypeGetFunction) \ | 220 CPP(CallSitePrototypeGetFunction) \ |
221 CPP(CallSitePrototypeGetFunctionName) \ | 221 CPP(CallSitePrototypeGetFunctionName) \ |
222 CPP(CallSitePrototypeGetLineNumber) \ | 222 CPP(CallSitePrototypeGetLineNumber) \ |
223 CPP(CallSitePrototypeGetMethodName) \ | 223 CPP(CallSitePrototypeGetMethodName) \ |
224 CPP(CallSitePrototypeGetPosition) \ | 224 CPP(CallSitePrototypeGetPosition) \ |
225 CPP(CallSitePrototypeGetScriptNameOrSourceURL) \ | 225 CPP(CallSitePrototypeGetScriptNameOrSourceURL) \ |
226 CPP(CallSitePrototypeGetThis) \ | 226 CPP(CallSitePrototypeGetThis) \ |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 | 644 |
645 friend class Isolate; | 645 friend class Isolate; |
646 | 646 |
647 DISALLOW_COPY_AND_ASSIGN(Builtins); | 647 DISALLOW_COPY_AND_ASSIGN(Builtins); |
648 }; | 648 }; |
649 | 649 |
650 } // namespace internal | 650 } // namespace internal |
651 } // namespace v8 | 651 } // namespace v8 |
652 | 652 |
653 #endif // V8_BUILTINS_BUILTINS_H_ | 653 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |