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

Side by Side Diff: src/builtins.h

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: fix test nits Created 4 years, 7 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 V(DatePrototypeToTimeString, kNone) \ 107 V(DatePrototypeToTimeString, kNone) \
108 V(DatePrototypeValueOf, kNone) \ 108 V(DatePrototypeValueOf, kNone) \
109 V(DatePrototypeGetYear, kNone) \ 109 V(DatePrototypeGetYear, kNone) \
110 V(DatePrototypeSetYear, kNone) \ 110 V(DatePrototypeSetYear, kNone) \
111 \ 111 \
112 V(FunctionConstructor, kTargetAndNewTarget) \ 112 V(FunctionConstructor, kTargetAndNewTarget) \
113 V(FunctionPrototypeBind, kNone) \ 113 V(FunctionPrototypeBind, kNone) \
114 V(FunctionPrototypeToString, kNone) \ 114 V(FunctionPrototypeToString, kNone) \
115 \ 115 \
116 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \ 116 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \
117 V(AsyncFunctionConstructor, kTargetAndNewTarget) \
117 \ 118 \
118 V(GlobalEval, kTarget) \ 119 V(GlobalEval, kTarget) \
119 \ 120 \
120 V(MathAcos, kNone) \ 121 V(MathAcos, kNone) \
121 V(MathAsin, kNone) \ 122 V(MathAsin, kNone) \
122 V(MathAtan, kNone) \ 123 V(MathAtan, kNone) \
123 V(MathFround, kNone) \ 124 V(MathFround, kNone) \
124 V(MathImul, kNone) \ 125 V(MathImul, kNone) \
125 \ 126 \
126 V(ObjectAssign, kNone) \ 127 V(ObjectAssign, kNone) \
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 306 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
306 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 307 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
307 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 308 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \
308 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) 309 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V)
309 310
310 // Define list of builtins implemented in TurboFan (with JS linkage). 311 // Define list of builtins implemented in TurboFan (with JS linkage).
311 #define BUILTIN_LIST_T(V) \ 312 #define BUILTIN_LIST_T(V) \
312 V(GeneratorPrototypeNext, 2) \ 313 V(GeneratorPrototypeNext, 2) \
313 V(GeneratorPrototypeReturn, 2) \ 314 V(GeneratorPrototypeReturn, 2) \
314 V(GeneratorPrototypeThrow, 2) \ 315 V(GeneratorPrototypeThrow, 2) \
316 V(AsyncFunctionNext, 2) \
317 V(AsyncFunctionThrow, 2) \
315 V(MathCeil, 2) \ 318 V(MathCeil, 2) \
316 V(MathClz32, 2) \ 319 V(MathClz32, 2) \
317 V(MathFloor, 2) \ 320 V(MathFloor, 2) \
318 V(MathRound, 2) \ 321 V(MathRound, 2) \
319 V(MathSqrt, 2) \ 322 V(MathSqrt, 2) \
320 V(MathTrunc, 2) \ 323 V(MathTrunc, 2) \
321 V(ObjectHasOwnProperty, 2) \ 324 V(ObjectHasOwnProperty, 2) \
322 V(ArrayIsArray, 2) \ 325 V(ArrayIsArray, 2) \
323 V(StringPrototypeCharAt, 2) \ 326 V(StringPrototypeCharAt, 2) \
324 V(StringPrototypeCharCodeAt, 2) \ 327 V(StringPrototypeCharCodeAt, 2) \
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. 631 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case.
629 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); 632 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm);
630 633
631 // ES6 section 25.3.1.2 Generator.prototype.next ( value ) 634 // ES6 section 25.3.1.2 Generator.prototype.next ( value )
632 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler); 635 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler);
633 // ES6 section 25.3.1.3 Generator.prototype.return ( value ) 636 // ES6 section 25.3.1.3 Generator.prototype.return ( value )
634 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); 637 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler);
635 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) 638 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
636 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); 639 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler);
637 640
641 static void Generate_AsyncFunctionNext(CodeStubAssembler* assembler);
642 static void Generate_AsyncFunctionThrow(CodeStubAssembler* assembler);
643
638 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty 644 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty
639 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); 645 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler);
640 646
641 // ES6 section 22.1.2.2 Array.isArray 647 // ES6 section 22.1.2.2 Array.isArray
642 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); 648 static void Generate_ArrayIsArray(CodeStubAssembler* assembler);
643 649
644 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) 650 // ES6 section 21.1.3.1 String.prototype.charAt ( pos )
645 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); 651 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler);
646 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) 652 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos )
647 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); 653 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 friend class BuiltinFunctionTable; 697 friend class BuiltinFunctionTable;
692 friend class Isolate; 698 friend class Isolate;
693 699
694 DISALLOW_COPY_AND_ASSIGN(Builtins); 700 DISALLOW_COPY_AND_ASSIGN(Builtins);
695 }; 701 };
696 702
697 } // namespace internal 703 } // namespace internal
698 } // namespace v8 704 } // namespace v8
699 705
700 #endif // V8_BUILTINS_H_ 706 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698