Chromium Code Reviews

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

Issue 7976024: Add dynamic stack frame alignment to optimized functions with untagged doubles on the stack. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove stray changes from assembler-[platform].h files. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 437 matching lines...)
448 448
449 void Oddball::OddballVerify() { 449 void Oddball::OddballVerify() {
450 CHECK(IsOddball()); 450 CHECK(IsOddball());
451 VerifyHeapPointer(to_string()); 451 VerifyHeapPointer(to_string());
452 Object* number = to_number(); 452 Object* number = to_number();
453 if (number->IsHeapObject()) { 453 if (number->IsHeapObject()) {
454 ASSERT(number == HEAP->nan_value()); 454 ASSERT(number == HEAP->nan_value());
455 } else { 455 } else {
456 ASSERT(number->IsSmi()); 456 ASSERT(number->IsSmi());
457 int value = Smi::cast(number)->value(); 457 int value = Smi::cast(number)->value();
458 ASSERT(value <= 1);
458 // Hidden oddballs have negative smis. 459 // Hidden oddballs have negative smis.
459 const int kLeastHiddenOddballNumber = -4;
460 ASSERT(value <= 1);
461 ASSERT(value >= kLeastHiddenOddballNumber); 460 ASSERT(value >= kLeastHiddenOddballNumber);
462 } 461 }
463 } 462 }
464 463
465 464
466 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { 465 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() {
467 CHECK(IsJSGlobalPropertyCell()); 466 CHECK(IsJSGlobalPropertyCell());
468 VerifyObjectField(kValueOffset); 467 VerifyObjectField(kValueOffset);
469 } 468 }
470 469
(...skipping 347 matching lines...)
818 ASSERT(e->IsUndefined()); 817 ASSERT(e->IsUndefined());
819 } 818 }
820 } 819 }
821 } 820 }
822 } 821 }
823 822
824 823
825 #endif // DEBUG 824 #endif // DEBUG
826 825
827 } } // namespace v8::internal 826 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine