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

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: properly rebase 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 305 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
306 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 306 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \
307 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 307 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \
308 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) 308 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V)
309 309
310 // Define list of builtins implemented in TurboFan (with JS linkage). 310 // Define list of builtins implemented in TurboFan (with JS linkage).
311 #define BUILTIN_LIST_T(V) \ 311 #define BUILTIN_LIST_T(V) \
312 V(GeneratorPrototypeNext, 2) \ 312 V(GeneratorPrototypeNext, 2) \
313 V(GeneratorPrototypeReturn, 2) \ 313 V(GeneratorPrototypeReturn, 2) \
314 V(GeneratorPrototypeThrow, 2) \ 314 V(GeneratorPrototypeThrow, 2) \
315 V(AsyncFunctionNext, 2) \
316 V(AsyncFunctionThrow, 2) \
315 V(MathCeil, 2) \ 317 V(MathCeil, 2) \
316 V(MathClz32, 2) \ 318 V(MathClz32, 2) \
317 V(MathFloor, 2) \ 319 V(MathFloor, 2) \
318 V(MathRound, 2) \ 320 V(MathRound, 2) \
319 V(MathSqrt, 2) \ 321 V(MathSqrt, 2) \
320 V(MathTrunc, 2) \ 322 V(MathTrunc, 2) \
321 V(ObjectHasOwnProperty, 2) \ 323 V(ObjectHasOwnProperty, 2) \
322 V(ArrayIsArray, 2) \ 324 V(ArrayIsArray, 2) \
323 V(StringPrototypeCharAt, 2) \ 325 V(StringPrototypeCharAt, 2) \
324 V(StringPrototypeCharCodeAt, 2) \ 326 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. 630 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case.
629 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); 631 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm);
630 632
631 // ES6 section 25.3.1.2 Generator.prototype.next ( value ) 633 // ES6 section 25.3.1.2 Generator.prototype.next ( value )
632 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler); 634 static void Generate_GeneratorPrototypeNext(CodeStubAssembler* assembler);
633 // ES6 section 25.3.1.3 Generator.prototype.return ( value ) 635 // ES6 section 25.3.1.3 Generator.prototype.return ( value )
634 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); 636 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler);
635 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) 637 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
636 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); 638 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler);
637 639
640 static void Generate_AsyncFunctionNext(CodeStubAssembler* assembler);
641 static void Generate_AsyncFunctionThrow(CodeStubAssembler* assembler);
642
638 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty 643 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty
639 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); 644 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler);
640 645
641 // ES6 section 22.1.2.2 Array.isArray 646 // ES6 section 22.1.2.2 Array.isArray
642 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); 647 static void Generate_ArrayIsArray(CodeStubAssembler* assembler);
643 648
644 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) 649 // ES6 section 21.1.3.1 String.prototype.charAt ( pos )
645 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); 650 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler);
646 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) 651 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos )
647 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); 652 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 friend class BuiltinFunctionTable; 696 friend class BuiltinFunctionTable;
692 friend class Isolate; 697 friend class Isolate;
693 698
694 DISALLOW_COPY_AND_ASSIGN(Builtins); 699 DISALLOW_COPY_AND_ASSIGN(Builtins);
695 }; 700 };
696 701
697 } // namespace internal 702 } // namespace internal
698 } // namespace v8 703 } // namespace v8
699 704
700 #endif // V8_BUILTINS_H_ 705 #endif // V8_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698