| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 const char* msg = GetBailoutReason(reason); | 517 const char* msg = GetBailoutReason(reason); |
| 518 intptr_t p1 = reinterpret_cast<intptr_t>(msg); | 518 intptr_t p1 = reinterpret_cast<intptr_t>(msg); |
| 519 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; | 519 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; |
| 520 // Note: p0 might not be a valid Smi _value_, but it has a valid Smi tag. | 520 // Note: p0 might not be a valid Smi _value_, but it has a valid Smi tag. |
| 521 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); | 521 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); |
| 522 #ifdef DEBUG | 522 #ifdef DEBUG |
| 523 if (msg != NULL) { | 523 if (msg != NULL) { |
| 524 RecordComment("Abort message: "); | 524 RecordComment("Abort message: "); |
| 525 RecordComment(msg); | 525 RecordComment(msg); |
| 526 } | 526 } |
| 527 |
| 528 if (FLAG_trap_on_abort) { |
| 529 int3(); |
| 530 return; |
| 531 } |
| 527 #endif | 532 #endif |
| 533 |
| 528 push(rax); | 534 push(rax); |
| 529 movq(kScratchRegister, p0, RelocInfo::NONE64); | 535 movq(kScratchRegister, p0, RelocInfo::NONE64); |
| 530 push(kScratchRegister); | 536 push(kScratchRegister); |
| 531 movq(kScratchRegister, | 537 movq(kScratchRegister, |
| 532 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))), | 538 reinterpret_cast<intptr_t>(Smi::FromInt(static_cast<int>(p1 - p0))), |
| 533 RelocInfo::NONE64); | 539 RelocInfo::NONE64); |
| 534 push(kScratchRegister); | 540 push(kScratchRegister); |
| 535 | 541 |
| 536 if (!has_frame_) { | 542 if (!has_frame_) { |
| 537 // We don't actually want to generate a pile of code for this, so just | 543 // We don't actually want to generate a pile of code for this, so just |
| (...skipping 4156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4694 j(greater, &no_memento_available); | 4700 j(greater, &no_memento_available); |
| 4695 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), | 4701 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), |
| 4696 Heap::kAllocationMementoMapRootIndex); | 4702 Heap::kAllocationMementoMapRootIndex); |
| 4697 bind(&no_memento_available); | 4703 bind(&no_memento_available); |
| 4698 } | 4704 } |
| 4699 | 4705 |
| 4700 | 4706 |
| 4701 } } // namespace v8::internal | 4707 } } // namespace v8::internal |
| 4702 | 4708 |
| 4703 #endif // V8_TARGET_ARCH_X64 | 4709 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |