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

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

Issue 595333002: Non-JSArrays must always have holey elements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: use CHECK_EQ Created 6 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 | Annotate | Revision Log
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 VerifyObjectField(kDebugInfoOffset); 540 VerifyObjectField(kDebugInfoOffset);
541 } 541 }
542 542
543 543
544 void JSGlobalProxy::JSGlobalProxyVerify() { 544 void JSGlobalProxy::JSGlobalProxyVerify() {
545 CHECK(IsJSGlobalProxy()); 545 CHECK(IsJSGlobalProxy());
546 JSObjectVerify(); 546 JSObjectVerify();
547 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); 547 VerifyObjectField(JSGlobalProxy::kNativeContextOffset);
548 // Make sure that this object has no properties, elements. 548 // Make sure that this object has no properties, elements.
549 CHECK_EQ(0, properties()->length()); 549 CHECK_EQ(0, properties()->length());
550 CHECK(HasFastSmiElements()); 550 CHECK_EQ(FAST_HOLEY_SMI_ELEMENTS, GetElementsKind());
551 CHECK_EQ(0, FixedArray::cast(elements())->length()); 551 CHECK_EQ(0, FixedArray::cast(elements())->length());
552 } 552 }
553 553
554 554
555 void JSGlobalObject::JSGlobalObjectVerify() { 555 void JSGlobalObject::JSGlobalObjectVerify() {
556 CHECK(IsJSGlobalObject()); 556 CHECK(IsJSGlobalObject());
557 JSObjectVerify(); 557 JSObjectVerify();
558 for (int i = GlobalObject::kBuiltinsOffset; 558 for (int i = GlobalObject::kBuiltinsOffset;
559 i < JSGlobalObject::kSize; 559 i < JSGlobalObject::kSize;
560 i += kPointerSize) { 560 i += kPointerSize) {
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 for (int i = 0; i < number_of_transitions(); ++i) { 1196 for (int i = 0; i < number_of_transitions(); ++i) {
1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1198 } 1198 }
1199 return true; 1199 return true;
1200 } 1200 }
1201 1201
1202 1202
1203 #endif // DEBUG 1203 #endif // DEBUG
1204 1204
1205 } } // namespace v8::internal 1205 } } // namespace v8::internal
OLDNEW
« src/ast.cc ('K') | « src/factory.cc ('k') | test/mjsunit/regress/regress-crbug-416558.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698