OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |