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

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

Issue 2361593002: [modules] Do path resolution relative to each module file in d8 (Closed)
Patch Set: Review comments 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 after_debug_event()->ObjectVerify(); 920 after_debug_event()->ObjectVerify();
921 } 921 }
922 922
923 void Module::ModuleVerify() { 923 void Module::ModuleVerify() {
924 CHECK(IsModule()); 924 CHECK(IsModule());
925 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); 925 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
926 code()->ObjectVerify(); 926 code()->ObjectVerify();
927 exports()->ObjectVerify(); 927 exports()->ObjectVerify();
928 requested_modules()->ObjectVerify(); 928 requested_modules()->ObjectVerify();
929 VerifySmiField(kFlagsOffset); 929 VerifySmiField(kFlagsOffset);
930 embedder_data()->ObjectVerify();
930 // TODO(neis): Check more. 931 // TODO(neis): Check more.
931 } 932 }
932 933
933 void PrototypeInfo::PrototypeInfoVerify() { 934 void PrototypeInfo::PrototypeInfoVerify() {
934 CHECK(IsPrototypeInfo()); 935 CHECK(IsPrototypeInfo());
935 if (prototype_users()->IsWeakFixedArray()) { 936 if (prototype_users()->IsWeakFixedArray()) {
936 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 937 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
937 } else { 938 } else {
938 CHECK(prototype_users()->IsSmi()); 939 CHECK(prototype_users()->IsSmi());
939 } 940 }
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 1362
1362 // Both are done at the same time. 1363 // Both are done at the same time.
1363 CHECK_EQ(new_it.done(), old_it.done()); 1364 CHECK_EQ(new_it.done(), old_it.done());
1364 } 1365 }
1365 1366
1366 1367
1367 #endif // DEBUG 1368 #endif // DEBUG
1368 1369
1369 } // namespace internal 1370 } // namespace internal
1370 } // namespace v8 1371 } // 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