Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: src/crankshaft/mips/lithium-mips.cc

Issue 1705633004: [crankshaft] Remove the useless HCallStub instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/crankshaft/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 spill_index = env_index - instr->environment()->first_local_index(); 2401 spill_index = env_index - instr->environment()->first_local_index();
2402 if (spill_index > LUnallocated::kMaxFixedSlotIndex) { 2402 if (spill_index > LUnallocated::kMaxFixedSlotIndex) {
2403 Retry(kTooManySpillSlotsNeededForOSR); 2403 Retry(kTooManySpillSlotsNeededForOSR);
2404 spill_index = 0; 2404 spill_index = 0;
2405 } 2405 }
2406 } 2406 }
2407 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); 2407 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
2408 } 2408 }
2409 2409
2410 2410
2411 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) {
2412 LOperand* context = UseFixed(instr->context(), cp);
2413 return MarkAsCall(DefineFixed(new(zone()) LCallStub(context), v0), instr);
2414 }
2415
2416
2417 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { 2411 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) {
2418 // There are no real uses of the arguments object. 2412 // There are no real uses of the arguments object.
2419 // arguments.length and element access are supported directly on 2413 // arguments.length and element access are supported directly on
2420 // stack arguments, and any real arguments object use causes a bailout. 2414 // stack arguments, and any real arguments object use causes a bailout.
2421 // So this value is never used. 2415 // So this value is never used.
2422 return NULL; 2416 return NULL;
2423 } 2417 }
2424 2418
2425 2419
2426 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { 2420 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2562 LOperand* function = UseRegisterAtStart(instr->function()); 2556 LOperand* function = UseRegisterAtStart(instr->function());
2563 LAllocateBlockContext* result = 2557 LAllocateBlockContext* result =
2564 new(zone()) LAllocateBlockContext(context, function); 2558 new(zone()) LAllocateBlockContext(context, function);
2565 return MarkAsCall(DefineFixed(result, cp), instr); 2559 return MarkAsCall(DefineFixed(result, cp), instr);
2566 } 2560 }
2567 2561
2568 } // namespace internal 2562 } // namespace internal
2569 } // namespace v8 2563 } // namespace v8
2570 2564
2571 #endif // V8_TARGET_ARCH_MIPS 2565 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698