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

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

Issue 2351113004: [modules] Expand API to allow linking and use it in d8 (Closed)
Patch Set: Use StrictEquals, remove check for bad instantiation behavior Created 4 years, 3 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 CHECK(IsBox()); 899 CHECK(IsBox());
900 value()->ObjectVerify(); 900 value()->ObjectVerify();
901 } 901 }
902 902
903 void Module::ModuleVerify() { 903 void Module::ModuleVerify() {
904 CHECK(IsModule()); 904 CHECK(IsModule());
905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); 905 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
906 code()->ObjectVerify(); 906 code()->ObjectVerify();
907 exports()->ObjectVerify(); 907 exports()->ObjectVerify();
908 requested_modules()->ObjectVerify(); 908 requested_modules()->ObjectVerify();
909 VerifySmiField(kFlagsOffset);
909 // TODO(neis): Check more. 910 // TODO(neis): Check more.
910 } 911 }
911 912
912 void PrototypeInfo::PrototypeInfoVerify() { 913 void PrototypeInfo::PrototypeInfoVerify() {
913 CHECK(IsPrototypeInfo()); 914 CHECK(IsPrototypeInfo());
914 if (prototype_users()->IsWeakFixedArray()) { 915 if (prototype_users()->IsWeakFixedArray()) {
915 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 916 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
916 } else { 917 } else {
917 CHECK(prototype_users()->IsSmi()); 918 CHECK(prototype_users()->IsSmi());
918 } 919 }
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1341
1341 // Both are done at the same time. 1342 // Both are done at the same time.
1342 CHECK_EQ(new_it.done(), old_it.done()); 1343 CHECK_EQ(new_it.done(), old_it.done());
1343 } 1344 }
1344 1345
1345 1346
1346 #endif // DEBUG 1347 #endif // DEBUG
1347 1348
1348 } // namespace internal 1349 } // namespace internal
1349 } // namespace v8 1350 } // 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