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

Unified Diff: src/code-stub-assembler.cc

Issue 2650803003: [inspector] change target promise for kDebugWillHandle & kDebugDidHandle (Closed)
Patch Set: added missing guard in asyncTaskCreated Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index fc73d66c1b89945239913e51b0d3c68bf40f22b5..cdf345bbc1273496be59d6a310adee99c2dae8b2 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -8338,11 +8338,13 @@ Node* CodeStubAssembler::IsDebugActive() {
return Word32NotEqual(is_debug_active, Int32Constant(0));
}
-Node* CodeStubAssembler::IsPromiseHookEnabled() {
- Node* const promise_hook = Load(
- MachineType::Pointer(),
- ExternalConstant(ExternalReference::promise_hook_address(isolate())));
- return WordNotEqual(promise_hook, IntPtrConstant(0));
+Node* CodeStubAssembler::IsPromiseHookEnabledOrDebugIsActive() {
+ Node* const promise_hook_or_debug_is_active =
+ Load(MachineType::Uint8(),
+ ExternalConstant(
+ ExternalReference::promise_hook_or_debug_is_active_address(
+ isolate())));
+ return Word32NotEqual(promise_hook_or_debug_is_active, Int32Constant(0));
}
Node* CodeStubAssembler::AllocateFunctionWithMapAndContext(Node* map,
@@ -8391,8 +8393,6 @@ Node* CodeStubAssembler::AllocatePromiseReactionJobInfo(
StoreObjectFieldNoWriteBarrier(
result, PromiseReactionJobInfo::kDeferredOnRejectOffset,
deferred_on_reject);
- StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kDebugIdOffset,
- SmiConstant(kDebugPromiseNoID));
StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kContextOffset,
context);
return result;
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/debug/debug.h » ('j') | src/runtime/runtime-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698