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

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

Issue 2393303002: [modules] Store Module metadata in per-Context EmbedderData (Closed)
Patch Set: Rebased 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.cc ('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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 } 928 }
929 929
930 void Module::ModuleVerify() { 930 void Module::ModuleVerify() {
931 Isolate* isolate = GetIsolate(); 931 Isolate* isolate = GetIsolate();
932 CHECK(IsModule()); 932 CHECK(IsModule());
933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); 933 CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction());
934 code()->ObjectVerify(); 934 code()->ObjectVerify();
935 exports()->ObjectVerify(); 935 exports()->ObjectVerify();
936 requested_modules()->ObjectVerify(); 936 requested_modules()->ObjectVerify();
937 VerifySmiField(kFlagsOffset); 937 VerifySmiField(kFlagsOffset);
938 embedder_data()->ObjectVerify();
939 VerifySmiField(kHashOffset); 938 VerifySmiField(kHashOffset);
940 CHECK(module_namespace()->IsUndefined(isolate) || 939 CHECK(module_namespace()->IsUndefined(isolate) ||
941 module_namespace()->IsJSModuleNamespace()); 940 module_namespace()->IsJSModuleNamespace());
942 // TODO(neis): Check more. 941 // TODO(neis): Check more.
943 } 942 }
944 943
945 void PrototypeInfo::PrototypeInfoVerify() { 944 void PrototypeInfo::PrototypeInfoVerify() {
946 CHECK(IsPrototypeInfo()); 945 CHECK(IsPrototypeInfo());
947 if (prototype_users()->IsWeakFixedArray()) { 946 if (prototype_users()->IsWeakFixedArray()) {
948 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 947 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1372
1374 // Both are done at the same time. 1373 // Both are done at the same time.
1375 CHECK_EQ(new_it.done(), old_it.done()); 1374 CHECK_EQ(new_it.done(), old_it.done());
1376 } 1375 }
1377 1376
1378 1377
1379 #endif // DEBUG 1378 #endif // DEBUG
1380 1379
1381 } // namespace internal 1380 } // namespace internal
1382 } // namespace v8 1381 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698