| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 698 |
| 699 void Oddball::OddballVerify() { | 699 void Oddball::OddballVerify() { |
| 700 CHECK(IsOddball()); | 700 CHECK(IsOddball()); |
| 701 VerifyHeapPointer(to_string()); | 701 VerifyHeapPointer(to_string()); |
| 702 Object* number = to_number(); | 702 Object* number = to_number(); |
| 703 if (number->IsHeapObject()) { | 703 if (number->IsHeapObject()) { |
| 704 ASSERT(number == Heap::nan_value()); | 704 ASSERT(number == Heap::nan_value()); |
| 705 } else { | 705 } else { |
| 706 ASSERT(number->IsSmi()); | 706 ASSERT(number->IsSmi()); |
| 707 int value = Smi::cast(number)->value(); | 707 int value = Smi::cast(number)->value(); |
| 708 ASSERT(value == 0 || value == 1 || value == -1 || value == -2); | 708 ASSERT(value == 0 || value == 1 || value == -1 || |
| 709 value == -2 || value == -3); |
| 709 } | 710 } |
| 710 } | 711 } |
| 711 | 712 |
| 712 | 713 |
| 713 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { | 714 void JSGlobalPropertyCell::JSGlobalPropertyCellVerify() { |
| 714 CHECK(IsJSGlobalPropertyCell()); | 715 CHECK(IsJSGlobalPropertyCell()); |
| 715 VerifyObjectField(kValueOffset); | 716 VerifyObjectField(kValueOffset); |
| 716 } | 717 } |
| 717 | 718 |
| 718 | 719 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 } | 1154 } |
| 1154 current = hash; | 1155 current = hash; |
| 1155 } | 1156 } |
| 1156 return true; | 1157 return true; |
| 1157 } | 1158 } |
| 1158 | 1159 |
| 1159 | 1160 |
| 1160 #endif // DEBUG | 1161 #endif // DEBUG |
| 1161 | 1162 |
| 1162 } } // namespace v8::internal | 1163 } } // namespace v8::internal |
| OLD | NEW |