Index: src/builtins/builtins-promise.cc |
diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise.cc |
index 46f6043bd3c85350d81ea25da6940d0219a4b0ef..c0411d90f56aad1a87b5749e95660aba36b7c3b7 100644 |
--- a/src/builtins/builtins-promise.cc |
+++ b/src/builtins/builtins-promise.cc |
@@ -94,11 +94,10 @@ Node* PromiseBuiltinsAssembler::PromiseHasHandler(Node* promise) { |
} |
void PromiseBuiltinsAssembler::PromiseSetHasHandler(Node* promise) { |
- Node* const flags = |
- SmiUntag(LoadObjectField(promise, JSPromise::kFlagsOffset)); |
+ Node* const flags = LoadObjectField(promise, JSPromise::kFlagsOffset); |
Node* const new_flags = |
- WordOr(flags, IntPtrConstant(1 << JSPromise::kHasHandlerBit)); |
- StoreObjectField(promise, JSPromise::kFlagsOffset, SmiTag(new_flags)); |
+ SmiOr(flags, SmiConstant(1 << JSPromise::kHasHandlerBit)); |
+ StoreObjectFieldNoWriteBarrier(promise, JSPromise::kFlagsOffset, new_flags); |
} |
Node* PromiseBuiltinsAssembler::SpeciesConstructor(Node* context, Node* object, |