Chromium Code Reviews| 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 <stdarg.h> | 5 #include <stdarg.h> | 
| 6 #include <stdlib.h> | 6 #include <stdlib.h> | 
| 7 #include <cmath> | 7 #include <cmath> | 
| 8 | 8 | 
| 9 #if V8_TARGET_ARCH_ARM | 9 #if V8_TARGET_ARCH_ARM | 
| 10 | 10 | 
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 385 } | 385 } | 
| 386 } | 386 } | 
| 387 end = cur + words; | 387 end = cur + words; | 
| 388 | 388 | 
| 389 while (cur < end) { | 389 while (cur < end) { | 
| 390 PrintF(" 0x%08x: 0x%08x %10d", | 390 PrintF(" 0x%08x: 0x%08x %10d", | 
| 391 reinterpret_cast<intptr_t>(cur), *cur, *cur); | 391 reinterpret_cast<intptr_t>(cur), *cur, *cur); | 
| 392 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 392 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 
| 393 int value = *cur; | 393 int value = *cur; | 
| 394 Heap* current_heap = sim_->isolate_->heap(); | 394 Heap* current_heap = sim_->isolate_->heap(); | 
| 395 if (((value & 1) == 0) || current_heap->Contains(obj)) { | 395 if (((value & 1) == 0) || | 
| 396 current_heap->ContainsSlow(obj->address())) { | |
| 
 
Hannes Payer (out of office)
2016/02/09 14:40:22
Why ContainsSlow here? This is not a verifier meth
 
Michael Lippautz
2016/02/09 14:50:28
As discussed offline: There's a reinterpret_cast a
 
 | |
| 396 PrintF(" ("); | 397 PrintF(" ("); | 
| 397 if ((value & 1) == 0) { | 398 if ((value & 1) == 0) { | 
| 398 PrintF("smi %d", value / 2); | 399 PrintF("smi %d", value / 2); | 
| 399 } else { | 400 } else { | 
| 400 obj->ShortPrint(); | 401 obj->ShortPrint(); | 
| 401 } | 402 } | 
| 402 PrintF(")"); | 403 PrintF(")"); | 
| 403 } | 404 } | 
| 404 PrintF("\n"); | 405 PrintF("\n"); | 
| 405 cur++; | 406 cur++; | 
| (...skipping 3808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4214 set_register(sp, current_sp + sizeof(uintptr_t)); | 4215 set_register(sp, current_sp + sizeof(uintptr_t)); | 
| 4215 return address; | 4216 return address; | 
| 4216 } | 4217 } | 
| 4217 | 4218 | 
| 4218 } // namespace internal | 4219 } // namespace internal | 
| 4219 } // namespace v8 | 4220 } // namespace v8 | 
| 4220 | 4221 | 
| 4221 #endif // USE_SIMULATOR | 4222 #endif // USE_SIMULATOR | 
| 4222 | 4223 | 
| 4223 #endif // V8_TARGET_ARCH_ARM | 4224 #endif // V8_TARGET_ARCH_ARM | 
| OLD | NEW |