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

Unified Diff: src/objects-debug.cc

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: use consts Created 4 years, 2 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
« src/objects.h ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index afde76404e1dc071547081a79840a66782577420..eb36882980573c292f9692b6a7d3166185f30060 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -919,10 +919,8 @@ void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() {
CHECK(then()->IsJSReceiver());
CHECK(resolve()->IsJSFunction());
CHECK(reject()->IsJSFunction());
- CHECK(before_debug_event()->IsJSObject() ||
- before_debug_event()->IsUndefined(isolate));
- CHECK(after_debug_event()->IsJSObject() ||
- after_debug_event()->IsUndefined(isolate));
+ CHECK(id()->IsSmi() || id()->IsUndefined(isolate) || id()->IsObject());
adamk 2016/10/13 15:59:10 What is the IsObject() case for (and how could tha
gsathya 2016/10/13 21:27:30 That was just a catch-all, since Smi isn't guarant
+ CHECK(name()->IsString() || name()->IsUndefined(isolate));
}
void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
@@ -931,10 +929,8 @@ void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
CHECK(value()->IsObject());
CHECK(tasks()->IsJSArray() || tasks()->IsCallable());
CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate));
- CHECK(before_debug_event()->IsJSObject() ||
- before_debug_event()->IsUndefined(isolate));
- CHECK(after_debug_event()->IsJSObject() ||
- after_debug_event()->IsUndefined(isolate));
+ CHECK(id()->IsSmi() || id()->IsUndefined(isolate) || id()->IsObject());
+ CHECK(name()->IsString() || name()->IsUndefined(isolate));
CHECK(context()->IsContext());
}
« src/objects.h ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698