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

Side by Side Diff: src/builtins/builtins-promise.cc

Issue 2590373002: [builtins] Add ReturnReceiver builtin (Closed)
Patch Set: remvoe prototype from name Created 4 years 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
« no previous file with comments | « src/builtins/builtins.h ('k') | src/heap-symbols.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/builtins/builtins-promise.h" 5 #include "src/builtins/builtins-promise.h"
6 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins-utils.h"
7 #include "src/builtins/builtins.h" 7 #include "src/builtins/builtins.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stub-assembler.h" 9 #include "src/code-stub-assembler.h"
10 #include "src/promise-utils.h" 10 #include "src/promise-utils.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 984
985 GotoUnless(is_debug_active, &out); 985 GotoUnless(is_debug_active, &out);
986 CallRuntime(Runtime::kDebugPopPromise, context); 986 CallRuntime(Runtime::kDebugPopPromise, context);
987 Goto(&out); 987 Goto(&out);
988 988
989 Bind(&out); 989 Bind(&out);
990 Return(UndefinedConstant()); 990 Return(UndefinedConstant());
991 } 991 }
992 } 992 }
993 993
994 TF_BUILTIN(PromiseSpeciesGetter, PromiseBuiltinsAssembler) {
adamk 2016/12/20 23:03:12 Seems like we should only need one of these builti
caitp 2016/12/20 23:58:05 %IteratorPrototype%[@@iterator] can reuse this cod
995 // 1. Return the this value
996 Node* const receiver = Parameter(0);
997 Return(receiver);
998 }
999
994 } // namespace internal 1000 } // namespace internal
995 } // namespace v8 1001 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698