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