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

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

Issue 2406343002: [promises] Move PromiseReactionJob to c++ (Closed)
Patch Set: fix whitespace 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
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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 void PromiseContainer::PromiseContainerVerify() { 915 void PromiseContainer::PromiseContainerVerify() {
916 CHECK(IsPromiseContainer()); 916 CHECK(IsPromiseContainer());
917 thenable()->ObjectVerify(); 917 thenable()->ObjectVerify();
918 then()->ObjectVerify(); 918 then()->ObjectVerify();
919 resolve()->ObjectVerify(); 919 resolve()->ObjectVerify();
920 reject()->ObjectVerify(); 920 reject()->ObjectVerify();
921 before_debug_event()->ObjectVerify(); 921 before_debug_event()->ObjectVerify();
922 after_debug_event()->ObjectVerify(); 922 after_debug_event()->ObjectVerify();
923 } 923 }
924 924
925 void PromiseHandleInfo::PromiseHandleInfoVerify() {
926 CHECK(IsPromiseHandleInfo());
927 value()->ObjectVerify();
928 tasks()->ObjectVerify();
929 deferred()->ObjectVerify();
930 before_debug_event()->ObjectVerify();
931 after_debug_event()->ObjectVerify();
932 reaction_context()->ObjectVerify();
adamk 2016/10/11 23:14:30 I think I led you down the wrong path here the fir
gsathya 2016/10/12 02:00:44 Why is tasks special? Don't we want to check if de
933 }
934
925 void JSModuleNamespace::JSModuleNamespaceVerify() { 935 void JSModuleNamespace::JSModuleNamespaceVerify() {
926 CHECK(IsJSModuleNamespace()); 936 CHECK(IsJSModuleNamespace());
927 module()->ObjectVerify(); 937 module()->ObjectVerify();
928 } 938 }
929 939
930 void Module::ModuleVerify() { 940 void Module::ModuleVerify() {
931 Isolate* isolate = GetIsolate(); 941 Isolate* isolate = GetIsolate();
932 CHECK(IsModule()); 942 CHECK(IsModule());
933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); 943 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
934 code()->ObjectVerify(); 944 code()->ObjectVerify();
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1383
1374 // Both are done at the same time. 1384 // Both are done at the same time.
1375 CHECK_EQ(new_it.done(), old_it.done()); 1385 CHECK_EQ(new_it.done(), old_it.done());
1376 } 1386 }
1377 1387
1378 1388
1379 #endif // DEBUG 1389 #endif // DEBUG
1380 1390
1381 } // namespace internal 1391 } // namespace internal
1382 } // namespace v8 1392 } // namespace v8
OLDNEW
« 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