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

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: Partially fix `throw` completions (resumption works, but no resumption doesn't) Created 4 years, 8 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 3) \
311 V(AsyncFunctionThrow, 3) \
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(AtomicsLoadCheck, 3) 321 V(AtomicsLoadCheck, 3)
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 // ES6 section 25.3.1.2 Generator.prototype.next ( value ) 623 // ES6 section 25.3.1.2 Generator.prototype.next ( value )
622 static void Generate_GeneratorPrototypeNext( 624 static void Generate_GeneratorPrototypeNext(
623 compiler::CodeStubAssembler* assembler); 625 compiler::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( 627 static void Generate_GeneratorPrototypeReturn(
626 compiler::CodeStubAssembler* assembler); 628 compiler::CodeStubAssembler* assembler);
627 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) 629 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception )
628 static void Generate_GeneratorPrototypeThrow( 630 static void Generate_GeneratorPrototypeThrow(
629 compiler::CodeStubAssembler* assembler); 631 compiler::CodeStubAssembler* assembler);
630 632
633 static void Generate_AsyncFunctionNext(
634 compiler::CodeStubAssembler* assembler);
635 static void Generate_AsyncFunctionThrow(
636 compiler::CodeStubAssembler* assembler);
637
631 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty 638 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty
632 static void Generate_ObjectHasOwnProperty( 639 static void Generate_ObjectHasOwnProperty(
633 compiler::CodeStubAssembler* assembler); 640 compiler::CodeStubAssembler* assembler);
634 641
635 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) 642 // ES6 section 21.1.3.1 String.prototype.charAt ( pos )
636 static void Generate_StringPrototypeCharAt( 643 static void Generate_StringPrototypeCharAt(
637 compiler::CodeStubAssembler* assembler); 644 compiler::CodeStubAssembler* assembler);
638 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) 645 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos )
639 static void Generate_StringPrototypeCharCodeAt( 646 static void Generate_StringPrototypeCharCodeAt(
640 compiler::CodeStubAssembler* assembler); 647 compiler::CodeStubAssembler* assembler);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 friend class BuiltinFunctionTable; 690 friend class BuiltinFunctionTable;
684 friend class Isolate; 691 friend class Isolate;
685 692
686 DISALLOW_COPY_AND_ASSIGN(Builtins); 693 DISALLOW_COPY_AND_ASSIGN(Builtins);
687 }; 694 };
688 695
689 } // namespace internal 696 } // namespace internal
690 } // namespace v8 697 } // namespace v8
691 698
692 #endif // V8_BUILTINS_H_ 699 #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