Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 2fa038baa49736ea188662e1a876d2cc68bb16b3..75808ff0a1591f8af65c229933ac24733a91d93c 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -487,7 +487,7 @@ LPlatformChunk* LChunkBuilder::Build() { |
} |
-void LChunkBuilder::Abort(const char* reason) { |
+void LChunkBuilder::Abort(BailoutReason reason) { |
info()->set_bailout_reason(reason); |
status_ = ABORTED; |
} |
@@ -698,7 +698,7 @@ LUnallocated* LChunkBuilder::TempRegister() { |
new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); |
int vreg = allocator_->GetVirtualRegister(); |
if (!allocator_->AllocationOk()) { |
- Abort("Out of virtual registers while trying to allocate temp register."); |
+ Abort(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister); |
vreg = 0; |
} |
operand->set_virtual_register(vreg); |
@@ -2567,7 +2567,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { |
int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. |
if (spill_index > LUnallocated::kMaxFixedSlotIndex) { |
- Abort("Too many spill slots needed for OSR"); |
+ Abort(kTooManySpillSlotsNeededForOSR); |
spill_index = 0; |
} |
return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); |