| 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-utils.h" | 5 #include "src/builtins/builtins-utils.h" |
| 6 #include "src/builtins/builtins.h" | 6 #include "src/builtins/builtins.h" |
| 7 | |
| 8 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stub-assembler.h" |
| 9 #include "src/promise-utils.h" | 9 #include "src/promise-utils.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 // ES#sec-promise-resolve-functions | 14 // ES#sec-promise-resolve-functions |
| 15 // Promise Resolve Functions | 15 // Promise Resolve Functions |
| 16 BUILTIN(PromiseResolveClosure) { | 16 BUILTIN(PromiseResolveClosure) { |
| 17 HandleScope scope(isolate); | 17 HandleScope scope(isolate); |
| 18 | 18 |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 Node* const key = | 657 Node* const key = |
| 658 a.HeapConstant(isolate->factory()->NewStringFromAsciiChecked("promise")); | 658 a.HeapConstant(isolate->factory()->NewStringFromAsciiChecked("promise")); |
| 659 Node* const result = | 659 Node* const result = |
| 660 a.CallStub(getproperty_callable, context, var_deferred.value(), key); | 660 a.CallStub(getproperty_callable, context, var_deferred.value(), key); |
| 661 | 661 |
| 662 a.Return(result); | 662 a.Return(result); |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace internal | 665 } // namespace internal |
| 666 } // namespace v8 | 666 } // namespace v8 |
| OLD | NEW |