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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-x87.h ('k') | no next file » | 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/x87/lithium-x87.h" 5 #include "src/crankshaft/x87/lithium-x87.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 if (spill_index == 0) { 2515 if (spill_index == 0) {
2516 // The dynamic frame alignment state overwrites the first local. 2516 // The dynamic frame alignment state overwrites the first local.
2517 // The first local is saved at the end of the unoptimized frame. 2517 // The first local is saved at the end of the unoptimized frame.
2518 spill_index = graph()->osr()->UnoptimizedFrameSlots(); 2518 spill_index = graph()->osr()->UnoptimizedFrameSlots();
2519 } 2519 }
2520 } 2520 }
2521 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); 2521 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
2522 } 2522 }
2523 2523
2524 2524
2525 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) {
2526 LOperand* context = UseFixed(instr->context(), esi);
2527 LCallStub* result = new(zone()) LCallStub(context);
2528 return MarkAsCall(DefineFixed(result, eax), instr);
2529 }
2530
2531
2532 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { 2525 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) {
2533 // There are no real uses of the arguments object. 2526 // There are no real uses of the arguments object.
2534 // arguments.length and element access are supported directly on 2527 // arguments.length and element access are supported directly on
2535 // stack arguments, and any real arguments object use causes a bailout. 2528 // stack arguments, and any real arguments object use causes a bailout.
2536 // So this value is never used. 2529 // So this value is never used.
2537 return NULL; 2530 return NULL;
2538 } 2531 }
2539 2532
2540 2533
2541 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) { 2534 LInstruction* LChunkBuilder::DoCapturedObject(HCapturedObject* instr) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 LAllocateBlockContext* result = 2678 LAllocateBlockContext* result =
2686 new(zone()) LAllocateBlockContext(context, function); 2679 new(zone()) LAllocateBlockContext(context, function);
2687 return MarkAsCall(DefineFixed(result, esi), instr); 2680 return MarkAsCall(DefineFixed(result, esi), instr);
2688 } 2681 }
2689 2682
2690 2683
2691 } // namespace internal 2684 } // namespace internal
2692 } // namespace v8 2685 } // namespace v8
2693 2686
2694 #endif // V8_TARGET_ARCH_X87 2687 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698