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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 300 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
301 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 301 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
302 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 302 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
303 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 303 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
304 | 304 |
305 // Define list of builtins implemented in TurboFan (with JS linkage). | 305 // Define list of builtins implemented in TurboFan (with JS linkage). |
306 #define BUILTIN_LIST_T(V) \ | 306 #define BUILTIN_LIST_T(V) \ |
307 V(GeneratorPrototypeNext, 2) \ | 307 V(GeneratorPrototypeNext, 2) \ |
308 V(GeneratorPrototypeReturn, 2) \ | 308 V(GeneratorPrototypeReturn, 2) \ |
309 V(GeneratorPrototypeThrow, 2) \ | 309 V(GeneratorPrototypeThrow, 2) \ |
| 310 V(AsyncFunctionNext, 2) \ |
| 311 V(AsyncFunctionThrow, 2) \ |
310 V(MathCeil, 2) \ | 312 V(MathCeil, 2) \ |
311 V(MathClz32, 2) \ | 313 V(MathClz32, 2) \ |
312 V(MathFloor, 2) \ | 314 V(MathFloor, 2) \ |
313 V(MathRound, 2) \ | 315 V(MathRound, 2) \ |
314 V(MathSqrt, 2) \ | 316 V(MathSqrt, 2) \ |
315 V(MathTrunc, 2) \ | 317 V(MathTrunc, 2) \ |
316 V(ObjectHasOwnProperty, 2) \ | 318 V(ObjectHasOwnProperty, 2) \ |
317 V(StringPrototypeCharAt, 2) \ | 319 V(StringPrototypeCharAt, 2) \ |
318 V(StringPrototypeCharCodeAt, 2) \ | 320 V(StringPrototypeCharCodeAt, 2) \ |
319 V(AtomicsLoad, 3) | 321 V(AtomicsLoad, 3) |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. | 621 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. |
620 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); | 622 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); |
621 | 623 |
622 // ES6 section 25.3.1.2 Generator.prototype.next ( value ) | 624 // ES6 section 25.3.1.2 Generator.prototype.next ( value ) |
623 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler); | 625 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler); |
624 // ES6 section 25.3.1.3 Generator.prototype.return ( value ) | 626 // ES6 section 25.3.1.3 Generator.prototype.return ( value ) |
625 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); | 627 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); |
626 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 628 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
627 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); | 629 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); |
628 | 630 |
| 631 static void Generate_AsyncFunctionNext(CodeStubAssembler* assembler); |
| 632 static void Generate_AsyncFunctionThrow(CodeStubAssembler* assembler); |
| 633 |
629 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty | 634 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
630 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); | 635 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); |
631 | 636 |
632 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) | 637 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) |
633 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); | 638 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); |
634 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) | 639 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) |
635 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); | 640 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); |
636 | 641 |
637 static void Generate_StringConstructor(MacroAssembler* masm); | 642 static void Generate_StringConstructor(MacroAssembler* masm); |
638 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 643 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 friend class BuiltinFunctionTable; | 683 friend class BuiltinFunctionTable; |
679 friend class Isolate; | 684 friend class Isolate; |
680 | 685 |
681 DISALLOW_COPY_AND_ASSIGN(Builtins); | 686 DISALLOW_COPY_AND_ASSIGN(Builtins); |
682 }; | 687 }; |
683 | 688 |
684 } // namespace internal | 689 } // namespace internal |
685 } // namespace v8 | 690 } // namespace v8 |
686 | 691 |
687 #endif // V8_BUILTINS_H_ | 692 #endif // V8_BUILTINS_H_ |
OLD | NEW |