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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: rebase 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 void Foreign::ForeignVerify() { 893 void Foreign::ForeignVerify() {
894 CHECK(IsForeign()); 894 CHECK(IsForeign());
895 } 895 }
896 896
897 897
898 void Box::BoxVerify() { 898 void Box::BoxVerify() {
899 CHECK(IsBox()); 899 CHECK(IsBox());
900 value()->ObjectVerify(); 900 value()->ObjectVerify();
901 } 901 }
902 902
903 void PromiseContainer::PromiseContainerVerify() {
904 CHECK(IsPromiseContainer());
905 thenable()->ObjectVerify();
906 then()->ObjectVerify();
907 resolve()->ObjectVerify();
908 reject()->ObjectVerify();
909 before_debug_event()->ObjectVerify();
910 after_debug_event()->ObjectVerify();
911 }
912
903 void Module::ModuleVerify() { 913 void Module::ModuleVerify() {
904 CHECK(IsModule()); 914 CHECK(IsModule());
905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); 915 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
906 code()->ObjectVerify(); 916 code()->ObjectVerify();
907 exports()->ObjectVerify(); 917 exports()->ObjectVerify();
908 requested_modules()->ObjectVerify(); 918 requested_modules()->ObjectVerify();
909 // TODO(neis): Check more. 919 // TODO(neis): Check more.
910 } 920 }
911 921
912 void PrototypeInfo::PrototypeInfoVerify() { 922 void PrototypeInfo::PrototypeInfoVerify() {
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1350
1341 // Both are done at the same time. 1351 // Both are done at the same time.
1342 CHECK_EQ(new_it.done(), old_it.done()); 1352 CHECK_EQ(new_it.done(), old_it.done());
1343 } 1353 }
1344 1354
1345 1355
1346 #endif // DEBUG 1356 #endif // DEBUG
1347 1357
1348 } // namespace internal 1358 } // namespace internal
1349 } // namespace v8 1359 } // 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