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

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

Issue 2398683004: [crankshaft] Remove HLoadNamedGeneric and use HCallWithDescriptor to call LoadIC. (Closed)
Patch Set: Created 4 years, 2 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/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-arm64.h" 5 #include "src/crankshaft/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 return MarkAsCall(result, instr); 1614 return MarkAsCall(result, instr);
1615 } 1615 }
1616 1616
1617 1617
1618 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1618 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1619 LOperand* object = UseRegisterAtStart(instr->object()); 1619 LOperand* object = UseRegisterAtStart(instr->object());
1620 return DefineAsRegister(new(zone()) LLoadNamedField(object)); 1620 return DefineAsRegister(new(zone()) LLoadNamedField(object));
1621 } 1621 }
1622 1622
1623 1623
1624 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1625 LOperand* context = UseFixed(instr->context(), cp);
1626 LOperand* object =
1627 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
1628 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1629
1630 LInstruction* result =
1631 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), x0);
1632 return MarkAsCall(result, instr);
1633 }
1634
1635
1636 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { 1624 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
1637 return DefineAsRegister(new(zone()) LLoadRoot); 1625 return DefineAsRegister(new(zone()) LLoadRoot);
1638 } 1626 }
1639 1627
1640 1628
1641 LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) { 1629 LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) {
1642 DCHECK(instr->representation().IsInteger32()); 1630 DCHECK(instr->representation().IsInteger32());
1643 DCHECK(instr->left()->representation().Equals(instr->representation())); 1631 DCHECK(instr->left()->representation().Equals(instr->representation()));
1644 DCHECK(instr->right()->representation().Equals(instr->representation())); 1632 DCHECK(instr->right()->representation().Equals(instr->representation()));
1645 LOperand* dividend = UseRegisterAtStart(instr->left()); 1633 LOperand* dividend = UseRegisterAtStart(instr->left());
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2541 2529
2542 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2530 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2543 LOperand* receiver = UseRegister(instr->receiver()); 2531 LOperand* receiver = UseRegister(instr->receiver());
2544 LOperand* function = UseRegister(instr->function()); 2532 LOperand* function = UseRegister(instr->function());
2545 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2533 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2546 return AssignEnvironment(DefineAsRegister(result)); 2534 return AssignEnvironment(DefineAsRegister(result));
2547 } 2535 }
2548 2536
2549 } // namespace internal 2537 } // namespace internal
2550 } // namespace v8 2538 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698