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

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

Issue 2347933002: [modules] Introduce v8::Module to the API and return it from CompileModule (Closed)
Patch Set: Less maybe 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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } 894 }
895 895
896 896
897 void Box::BoxVerify() { 897 void Box::BoxVerify() {
898 CHECK(IsBox()); 898 CHECK(IsBox());
899 value()->ObjectVerify(); 899 value()->ObjectVerify();
900 } 900 }
901 901
902 void Module::ModuleVerify() { 902 void Module::ModuleVerify() {
903 CHECK(IsModule()); 903 CHECK(IsModule());
904 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
905 code()->ObjectVerify();
904 exports()->ObjectVerify(); 906 exports()->ObjectVerify();
905 // TODO(neis): Check more. 907 // TODO(neis): Check more.
906 } 908 }
907 909
908 void PrototypeInfo::PrototypeInfoVerify() { 910 void PrototypeInfo::PrototypeInfoVerify() {
909 CHECK(IsPrototypeInfo()); 911 CHECK(IsPrototypeInfo());
910 if (prototype_users()->IsWeakFixedArray()) { 912 if (prototype_users()->IsWeakFixedArray()) {
911 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 913 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
912 } else { 914 } else {
913 CHECK(prototype_users()->IsSmi()); 915 CHECK(prototype_users()->IsSmi());
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1338
1337 // Both are done at the same time. 1339 // Both are done at the same time.
1338 CHECK_EQ(new_it.done(), old_it.done()); 1340 CHECK_EQ(new_it.done(), old_it.done());
1339 } 1341 }
1340 1342
1341 1343
1342 #endif // DEBUG 1344 #endif // DEBUG
1343 1345
1344 } // namespace internal 1346 } // namespace internal
1345 } // namespace v8 1347 } // 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