| OLD | NEW |
| 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/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
| 9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 // In an expression like "new g()", there can be a point where a generator | 467 // In an expression like "new g()", there can be a point where a generator |
| 468 // object is allocated but its fields are all undefined, as it hasn't yet been | 468 // object is allocated but its fields are all undefined, as it hasn't yet been |
| 469 // initialized by the generator. Hence these weak checks. | 469 // initialized by the generator. Hence these weak checks. |
| 470 VerifyObjectField(kFunctionOffset); | 470 VerifyObjectField(kFunctionOffset); |
| 471 VerifyObjectField(kContextOffset); | 471 VerifyObjectField(kContextOffset); |
| 472 VerifyObjectField(kReceiverOffset); | 472 VerifyObjectField(kReceiverOffset); |
| 473 VerifyObjectField(kRegisterFileOffset); | 473 VerifyObjectField(kRegisterFileOffset); |
| 474 VerifyObjectField(kContinuationOffset); | 474 VerifyObjectField(kContinuationOffset); |
| 475 } | 475 } |
| 476 | 476 |
| 477 | |
| 478 void JSValue::JSValueVerify() { | 477 void JSValue::JSValueVerify() { |
| 479 Object* v = value(); | 478 Object* v = value(); |
| 480 if (v->IsHeapObject()) { | 479 if (v->IsHeapObject()) { |
| 481 VerifyHeapPointer(v); | 480 VerifyHeapPointer(v); |
| 482 } | 481 } |
| 483 } | 482 } |
| 484 | 483 |
| 485 | 484 |
| 486 void JSDate::JSDateVerify() { | 485 void JSDate::JSDateVerify() { |
| 487 if (value()->IsHeapObject()) { | 486 if (value()->IsHeapObject()) { |
| (...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 | 1556 |
| 1558 // Both are done at the same time. | 1557 // Both are done at the same time. |
| 1559 CHECK_EQ(new_it.done(), old_it.done()); | 1558 CHECK_EQ(new_it.done(), old_it.done()); |
| 1560 } | 1559 } |
| 1561 | 1560 |
| 1562 | 1561 |
| 1563 #endif // DEBUG | 1562 #endif // DEBUG |
| 1564 | 1563 |
| 1565 } // namespace internal | 1564 } // namespace internal |
| 1566 } // namespace v8 | 1565 } // namespace v8 |
| OLD | NEW |