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 2412263002: [promises] rename PromiseContainer to PromiseResolveThenableJobInfo (Closed)
Patch Set: fix build 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 unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 void Foreign::ForeignVerify() { 905 void Foreign::ForeignVerify() {
906 CHECK(IsForeign()); 906 CHECK(IsForeign());
907 } 907 }
908 908
909 909
910 void Box::BoxVerify() { 910 void Box::BoxVerify() {
911 CHECK(IsBox()); 911 CHECK(IsBox());
912 value()->ObjectVerify(); 912 value()->ObjectVerify();
913 } 913 }
914 914
915 void PromiseContainer::PromiseContainerVerify() { 915 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() {
916 CHECK(IsPromiseContainer()); 916 Isolate* isolate = GetIsolate();
917 thenable()->ObjectVerify(); 917 CHECK(IsPromiseResolveThenableJobInfo());
918 then()->ObjectVerify(); 918 CHECK(thenable()->IsJSReceiver());
919 resolve()->ObjectVerify(); 919 CHECK(then()->IsJSReceiver());
920 reject()->ObjectVerify(); 920 CHECK(resolve()->IsJSFunction());
921 before_debug_event()->ObjectVerify(); 921 CHECK(reject()->IsJSFunction());
922 after_debug_event()->ObjectVerify(); 922 CHECK(before_debug_event()->IsJSObject() ||
923 before_debug_event()->IsUndefined(isolate));
924 CHECK(after_debug_event()->IsJSObject() ||
925 after_debug_event()->IsUndefined(isolate));
923 } 926 }
924 927
925 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { 928 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
926 Isolate* isolate = GetIsolate(); 929 Isolate* isolate = GetIsolate();
927 CHECK(IsPromiseReactionJobInfo()); 930 CHECK(IsPromiseReactionJobInfo());
928 CHECK(value()->IsObject()); 931 CHECK(value()->IsObject());
929 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); 932 CHECK(tasks()->IsJSArray() || tasks()->IsCallable());
930 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); 933 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate));
931 CHECK(before_debug_event()->IsJSObject() || 934 CHECK(before_debug_event()->IsJSObject() ||
932 before_debug_event()->IsUndefined(isolate)); 935 before_debug_event()->IsUndefined(isolate));
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 1388
1386 // Both are done at the same time. 1389 // Both are done at the same time.
1387 CHECK_EQ(new_it.done(), old_it.done()); 1390 CHECK_EQ(new_it.done(), old_it.done());
1388 } 1391 }
1389 1392
1390 1393
1391 #endif // DEBUG 1394 #endif // DEBUG
1392 1395
1393 } // namespace internal 1396 } // namespace internal
1394 } // namespace v8 1397 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698