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

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

Issue 11411005: Rename SeqAsciiString (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
« 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 void String::StringVerify() { 456 void String::StringVerify() {
457 CHECK(IsString()); 457 CHECK(IsString());
458 CHECK(length() >= 0 && length() <= Smi::kMaxValue); 458 CHECK(length() >= 0 && length() <= Smi::kMaxValue);
459 if (IsSymbol()) { 459 if (IsSymbol()) {
460 CHECK(!HEAP->InNewSpace(this)); 460 CHECK(!HEAP->InNewSpace(this));
461 } 461 }
462 if (IsConsString()) { 462 if (IsConsString()) {
463 ConsString::cast(this)->ConsStringVerify(); 463 ConsString::cast(this)->ConsStringVerify();
464 } else if (IsSlicedString()) { 464 } else if (IsSlicedString()) {
465 SlicedString::cast(this)->SlicedStringVerify(); 465 SlicedString::cast(this)->SlicedStringVerify();
466 } else if (IsSeqAsciiString()) { 466 } else if (IsSeqOneByteString()) {
467 SeqAsciiString::cast(this)->SeqAsciiStringVerify(); 467 SeqOneByteString::cast(this)->SeqOneByteStringVerify();
468 } 468 }
469 } 469 }
470 470
471 471
472 void SeqAsciiString::SeqAsciiStringVerify() { 472 void SeqOneByteString::SeqOneByteStringVerify() {
473 CHECK(String::IsAscii(GetChars(), length())); 473 CHECK(String::IsAscii(GetChars(), length()));
474 } 474 }
475 475
476 476
477 void ConsString::ConsStringVerify() { 477 void ConsString::ConsStringVerify() {
478 CHECK(this->first()->IsString()); 478 CHECK(this->first()->IsString());
479 CHECK(this->second() == GetHeap()->empty_string() || 479 CHECK(this->second() == GetHeap()->empty_string() ||
480 this->second()->IsString()); 480 this->second()->IsString());
481 CHECK(this->length() >= ConsString::kMinLength); 481 CHECK(this->length() >= ConsString::kMinLength);
482 if (this->IsFlat()) { 482 if (this->IsFlat()) {
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 for (int i = 0; i < number_of_transitions(); ++i) { 1002 for (int i = 0; i < number_of_transitions(); ++i) {
1003 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1003 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1004 } 1004 }
1005 return true; 1005 return true;
1006 } 1006 }
1007 1007
1008 1008
1009 #endif // DEBUG 1009 #endif // DEBUG
1010 1010
1011 } } // namespace v8::internal 1011 } } // namespace v8::internal
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