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

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

Issue 2406973003: Revert of [modules] Store Module metadata in per-Context EmbedderData (Closed)
Patch Set: 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();
938 VerifySmiField(kHashOffset); 939 VerifySmiField(kHashOffset);
939 CHECK(module_namespace()->IsUndefined(isolate) || 940 CHECK(module_namespace()->IsUndefined(isolate) ||
940 module_namespace()->IsJSModuleNamespace()); 941 module_namespace()->IsJSModuleNamespace());
941 // TODO(neis): Check more. 942 // TODO(neis): Check more.
942 } 943 }
943 944
944 void PrototypeInfo::PrototypeInfoVerify() { 945 void PrototypeInfo::PrototypeInfoVerify() {
945 CHECK(IsPrototypeInfo()); 946 CHECK(IsPrototypeInfo());
946 if (prototype_users()->IsWeakFixedArray()) { 947 if (prototype_users()->IsWeakFixedArray()) {
947 WeakFixedArray::cast(prototype_users())->FixedArrayVerify(); 948 WeakFixedArray::cast(prototype_users())->FixedArrayVerify();
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 1373
1373 // Both are done at the same time. 1374 // Both are done at the same time.
1374 CHECK_EQ(new_it.done(), old_it.done()); 1375 CHECK_EQ(new_it.done(), old_it.done());
1375 } 1376 }
1376 1377
1377 1378
1378 #endif // DEBUG 1379 #endif // DEBUG
1379 1380
1380 } // namespace internal 1381 } // namespace internal
1381 } // namespace v8 1382 } // 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