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

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

Issue 853493003: Correctly reference global proxy in the partial snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove bogus check Created 5 years, 11 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/factory.cc ('k') | src/serialize.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 VerifyObjectField(kDebugInfoOffset); 560 VerifyObjectField(kDebugInfoOffset);
561 } 561 }
562 562
563 563
564 void JSGlobalProxy::JSGlobalProxyVerify() { 564 void JSGlobalProxy::JSGlobalProxyVerify() {
565 CHECK(IsJSGlobalProxy()); 565 CHECK(IsJSGlobalProxy());
566 JSObjectVerify(); 566 JSObjectVerify();
567 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); 567 VerifyObjectField(JSGlobalProxy::kNativeContextOffset);
568 // Make sure that this object has no properties, elements. 568 // Make sure that this object has no properties, elements.
569 CHECK_EQ(0, properties()->length()); 569 CHECK_EQ(0, properties()->length());
570 CHECK_EQ(FAST_HOLEY_SMI_ELEMENTS, GetElementsKind());
571 CHECK_EQ(0, FixedArray::cast(elements())->length()); 570 CHECK_EQ(0, FixedArray::cast(elements())->length());
572 } 571 }
573 572
574 573
575 void JSGlobalObject::JSGlobalObjectVerify() { 574 void JSGlobalObject::JSGlobalObjectVerify() {
576 CHECK(IsJSGlobalObject()); 575 CHECK(IsJSGlobalObject());
577 JSObjectVerify(); 576 JSObjectVerify();
578 for (int i = GlobalObject::kBuiltinsOffset; 577 for (int i = GlobalObject::kBuiltinsOffset;
579 i < JSGlobalObject::kSize; 578 i < JSGlobalObject::kSize;
580 i += kPointerSize) { 579 i += kPointerSize) {
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 while (map != heap->roots_array_start()[i++]) { 1258 while (map != heap->roots_array_start()[i++]) {
1260 CHECK_LT(i, Heap::kStrongRootListLength); 1259 CHECK_LT(i, Heap::kStrongRootListLength);
1261 } 1260 }
1262 } 1261 }
1263 } 1262 }
1264 1263
1265 1264
1266 #endif // DEBUG 1265 #endif // DEBUG
1267 1266
1268 } } // namespace v8::internal 1267 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698