| 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/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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 } | 486 } |
| 487 if (cache_stamp()->IsSmi()) { | 487 if (cache_stamp()->IsSmi()) { |
| 488 CHECK(Smi::cast(cache_stamp())->value() <= | 488 CHECK(Smi::cast(cache_stamp())->value() <= |
| 489 Smi::cast(GetIsolate()->date_cache()->stamp())->value()); | 489 Smi::cast(GetIsolate()->date_cache()->stamp())->value()); |
| 490 } | 490 } |
| 491 } | 491 } |
| 492 | 492 |
| 493 | 493 |
| 494 void JSMessageObject::JSMessageObjectVerify() { | 494 void JSMessageObject::JSMessageObjectVerify() { |
| 495 CHECK(IsJSMessageObject()); | 495 CHECK(IsJSMessageObject()); |
| 496 CHECK(type()->IsString()); | |
| 497 CHECK(arguments()->IsJSArray()); | |
| 498 VerifyObjectField(kStartPositionOffset); | 496 VerifyObjectField(kStartPositionOffset); |
| 499 VerifyObjectField(kEndPositionOffset); | 497 VerifyObjectField(kEndPositionOffset); |
| 500 VerifyObjectField(kArgumentsOffset); | 498 VerifyObjectField(kArgumentsOffset); |
| 501 VerifyObjectField(kScriptOffset); | 499 VerifyObjectField(kScriptOffset); |
| 502 VerifyObjectField(kStackFramesOffset); | 500 VerifyObjectField(kStackFramesOffset); |
| 503 } | 501 } |
| 504 | 502 |
| 505 | 503 |
| 506 void String::StringVerify() { | 504 void String::StringVerify() { |
| 507 CHECK(IsString()); | 505 CHECK(IsString()); |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 ? it.rinfo()->target_cell() | 1280 ? it.rinfo()->target_cell() |
| 1283 : it.rinfo()->target_object(); | 1281 : it.rinfo()->target_object(); |
| 1284 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1282 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
| 1285 } | 1283 } |
| 1286 } | 1284 } |
| 1287 | 1285 |
| 1288 | 1286 |
| 1289 #endif // DEBUG | 1287 #endif // DEBUG |
| 1290 | 1288 |
| 1291 } } // namespace v8::internal | 1289 } } // namespace v8::internal |
| OLD | NEW |