| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index fd3fd3ad4c20f5848ca1ffdf2a25f5002b8ecb57..b68b52f63a4cd3e154e0f2b31b498359d89f0d34 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -277,24 +277,6 @@ void LCallConstantFunction::PrintDataTo(StringStream* stream) {
|
| }
|
|
|
|
|
| -ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) {
|
| - switch (hydrogen()->known_list()) {
|
| - case HLinkObjectInList::ALLOCATION_SITE_LIST:
|
| - return ExternalReference::allocation_sites_list_address(isolate);
|
| - }
|
| -
|
| - UNREACHABLE();
|
| - // Return a dummy value
|
| - return ExternalReference::isolate_address(isolate);
|
| -}
|
| -
|
| -
|
| -void LLinkObjectInList::PrintDataTo(StringStream* stream) {
|
| - object()->PrintTo(stream);
|
| - stream->Add(" offset %d", hydrogen()->store_field().offset());
|
| -}
|
| -
|
| -
|
| void LLoadContextSlot::PrintDataTo(StringStream* stream) {
|
| context()->PrintTo(stream);
|
| stream->Add("[%d]", slot_index());
|
| @@ -460,7 +442,7 @@ LPlatformChunk* LChunkBuilder::Build() {
|
| }
|
|
|
|
|
| -void LCodeGen::Abort(const char* reason) {
|
| +void LCodeGen::Abort(BailoutReason reason) {
|
| info()->set_bailout_reason(reason);
|
| status_ = ABORTED;
|
| }
|
| @@ -668,7 +650,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);
|
| @@ -2017,6 +1999,8 @@ LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
|
| return DefineAsRegister(new(zone()) LConstantI);
|
| } else if (r.IsDouble()) {
|
| return DefineAsRegister(new(zone()) LConstantD);
|
| + } else if (r.IsExternal()) {
|
| + return DefineAsRegister(new(zone()) LConstantE);
|
| } else if (r.IsTagged()) {
|
| return DefineAsRegister(new(zone()) LConstantT);
|
| } else {
|
| @@ -2060,13 +2044,6 @@ LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) {
|
| - LOperand* object = UseRegister(instr->value());
|
| - LLinkObjectInList* result = new(zone()) LLinkObjectInList(object);
|
| - return result;
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
|
| LOperand* context = UseRegisterAtStart(instr->value());
|
| LInstruction* result =
|
| @@ -2339,12 +2316,6 @@ LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
|
| - LOperand* string = UseRegisterAtStart(instr->value());
|
| - return DefineAsRegister(new(zone()) LStringLength(string));
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
|
| info()->MarkAsDeferredCalling();
|
| LOperand* size = instr->size()->IsConstant()
|
| @@ -2394,7 +2365,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);
|
|
|