| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index be72b78269e5eeb1d3242a2f1aabd584d5e65872..f47937557398aa0b2f14381b6761ab7db4bc99b1 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -104,6 +104,7 @@
|
| case JS_API_OBJECT_TYPE:
|
| case JS_SPECIAL_API_OBJECT_TYPE:
|
| case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
|
| + case JS_PROMISE_TYPE:
|
| JSObject::cast(this)->JSObjectVerify();
|
| break;
|
| case JS_GENERATOR_OBJECT_TYPE:
|
| @@ -204,9 +205,6 @@
|
| case JS_WEAK_SET_TYPE:
|
| JSWeakSet::cast(this)->JSWeakSetVerify();
|
| break;
|
| - case JS_PROMISE_TYPE:
|
| - JSPromise::cast(this)->JSPromiseVerify();
|
| - break;
|
| case JS_REGEXP_TYPE:
|
| JSRegExp::cast(this)->JSRegExpVerify();
|
| break;
|
| @@ -886,19 +884,6 @@
|
| CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate()));
|
| }
|
|
|
| -void JSPromise::JSPromiseVerify() {
|
| - CHECK(IsJSPromise());
|
| - JSObjectVerify();
|
| - Isolate* isolate = GetIsolate();
|
| - CHECK(result()->IsUndefined(isolate) || result()->IsObject());
|
| - CHECK(deferred()->IsUndefined(isolate) || deferred()->IsJSObject() ||
|
| - deferred()->IsFixedArray());
|
| - CHECK(fulfill_reactions()->IsUndefined(isolate) ||
|
| - fulfill_reactions()->IsCallable() ||
|
| - fulfill_reactions()->IsFixedArray());
|
| - CHECK(reject_reactions()->IsUndefined(isolate) ||
|
| - reject_reactions()->IsCallable() || reject_reactions()->IsFixedArray());
|
| -}
|
|
|
| void JSRegExp::JSRegExpVerify() {
|
| JSObjectVerify();
|
| @@ -1026,8 +1011,8 @@
|
| Isolate* isolate = GetIsolate();
|
| CHECK(IsPromiseReactionJobInfo());
|
| CHECK(value()->IsObject());
|
| - CHECK(tasks()->IsFixedArray() || tasks()->IsCallable());
|
| - CHECK(deferred()->IsFixedArray() || deferred()->IsJSObject());
|
| + CHECK(tasks()->IsJSArray() || tasks()->IsCallable());
|
| + CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate));
|
| CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate));
|
| CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate));
|
| CHECK(context()->IsContext());
|
|
|