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

Side by Side Diff: src/objects-debug.cc

Issue 2608843002: [promsies] Verify status field is a smi (Closed)
Patch Set: fix tests 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 unified diff | Download patch
« no previous file with comments | « no previous file | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 CHECK(IsJSWeakSet()); 880 CHECK(IsJSWeakSet());
881 JSObjectVerify(); 881 JSObjectVerify();
882 VerifyHeapPointer(table()); 882 VerifyHeapPointer(table());
883 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); 883 CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate()));
884 } 884 }
885 885
886 void JSPromise::JSPromiseVerify() { 886 void JSPromise::JSPromiseVerify() {
887 CHECK(IsJSPromise()); 887 CHECK(IsJSPromise());
888 JSObjectVerify(); 888 JSObjectVerify();
889 Isolate* isolate = GetIsolate(); 889 Isolate* isolate = GetIsolate();
890 VerifySmiField(kStatusOffset);
890 CHECK(result()->IsUndefined(isolate) || result()->IsObject()); 891 CHECK(result()->IsUndefined(isolate) || result()->IsObject());
891 CHECK(deferred_promise()->IsUndefined(isolate) || 892 CHECK(deferred_promise()->IsUndefined(isolate) ||
892 deferred_promise()->IsJSReceiver() || 893 deferred_promise()->IsJSReceiver() ||
893 deferred_promise()->IsFixedArray()); 894 deferred_promise()->IsFixedArray());
894 CHECK(deferred_on_resolve()->IsUndefined(isolate) || 895 CHECK(deferred_on_resolve()->IsUndefined(isolate) ||
895 deferred_on_resolve()->IsCallable() || 896 deferred_on_resolve()->IsCallable() ||
896 deferred_on_resolve()->IsFixedArray()); 897 deferred_on_resolve()->IsFixedArray());
897 CHECK(deferred_on_reject()->IsUndefined(isolate) || 898 CHECK(deferred_on_reject()->IsUndefined(isolate) ||
898 deferred_on_reject()->IsCallable() || 899 deferred_on_reject()->IsCallable() ||
899 deferred_on_reject()->IsFixedArray()); 900 deferred_on_reject()->IsFixedArray());
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 1545
1545 // Both are done at the same time. 1546 // Both are done at the same time.
1546 CHECK_EQ(new_it.done(), old_it.done()); 1547 CHECK_EQ(new_it.done(), old_it.done());
1547 } 1548 }
1548 1549
1549 1550
1550 #endif // DEBUG 1551 #endif // DEBUG
1551 1552
1552 } // namespace internal 1553 } // namespace internal
1553 } // namespace v8 1554 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698