diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins-promise-gen.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins-promise-gen.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/deps/v8/src/builtins/builtins-promise-gen.cc b/deps/v8/src/builtins/builtins-promise-gen.cc index ccfb3b11b09..241a2041bdf 100644 --- a/deps/v8/src/builtins/builtins-promise-gen.cc +++ b/deps/v8/src/builtins/builtins-promise-gen.cc @@ -709,9 +709,10 @@ void PromiseBuiltinsAssembler::SetForwardingHandlerIfTrue( Node* context, Node* condition, const NodeGenerator& object) { Label done(this); GotoIfNot(condition, &done); - CallRuntime(Runtime::kSetProperty, context, object(), - HeapConstant(factory()->promise_forwarding_handler_symbol()), - TrueConstant(), SmiConstant(LanguageMode::kStrict)); + SetPropertyStrict( + CAST(context), CAST(object()), + HeapConstant(factory()->promise_forwarding_handler_symbol()), + TrueConstant()); Goto(&done); BIND(&done); } @@ -723,9 +724,9 @@ void PromiseBuiltinsAssembler::SetPromiseHandledByIfTrue( GotoIfNot(condition, &done); GotoIf(TaggedIsSmi(promise), &done); GotoIfNot(HasInstanceType(promise, JS_PROMISE_TYPE), &done); - CallRuntime(Runtime::kSetProperty, context, promise, - HeapConstant(factory()->promise_handled_by_symbol()), - handled_by(), SmiConstant(LanguageMode::kStrict)); + SetPropertyStrict(CAST(context), CAST(promise), + HeapConstant(factory()->promise_handled_by_symbol()), + CAST(handled_by())); Goto(&done); BIND(&done); } @@ -2118,8 +2119,8 @@ TF_BUILTIN(PromiseAllResolveElementClosure, PromiseBuiltinsAssembler) { CSA_ASSERT(this, IntPtrLessThan(index, new_elements_length)); CSA_ASSERT(this, IntPtrLessThan(elements_length, new_elements_length)); TNode<FixedArray> new_elements = - AllocateFixedArray(PACKED_ELEMENTS, new_elements_length, - AllocationFlag::kAllowLargeObjectAllocation); + CAST(AllocateFixedArray(PACKED_ELEMENTS, new_elements_length, + AllocationFlag::kAllowLargeObjectAllocation)); CopyFixedArrayElements(PACKED_ELEMENTS, elements, PACKED_ELEMENTS, new_elements, elements_length, new_elements_length); |