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

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

Issue 2396023002: [crankshaft] Remove HLoadGlobalGeneric and use HCallWithDescriptor instead to call LoadGlobalIC. (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 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 1544
1545 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1545 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1546 HLoadFunctionPrototype* instr) { 1546 HLoadFunctionPrototype* instr) {
1547 LOperand* function = UseRegister(instr->function()); 1547 LOperand* function = UseRegister(instr->function());
1548 LOperand* temp = TempRegister(); 1548 LOperand* temp = TempRegister();
1549 return AssignEnvironment(DefineAsRegister( 1549 return AssignEnvironment(DefineAsRegister(
1550 new(zone()) LLoadFunctionPrototype(function, temp))); 1550 new(zone()) LLoadFunctionPrototype(function, temp)));
1551 } 1551 }
1552 1552
1553 1553
1554 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1555 LOperand* context = UseFixed(instr->context(), cp);
1556 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1557
1558 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
1559 return MarkAsCall(DefineFixed(result, x0), instr);
1560 }
1561
1562
1563 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 1554 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
1564 DCHECK(instr->key()->representation().IsSmiOrInteger32()); 1555 DCHECK(instr->key()->representation().IsSmiOrInteger32());
1565 ElementsKind elements_kind = instr->elements_kind(); 1556 ElementsKind elements_kind = instr->elements_kind();
1566 LOperand* elements = UseRegister(instr->elements()); 1557 LOperand* elements = UseRegister(instr->elements());
1567 LOperand* key = UseRegisterOrConstant(instr->key()); 1558 LOperand* key = UseRegisterOrConstant(instr->key());
1568 1559
1569 if (!instr->is_fixed_typed_array()) { 1560 if (!instr->is_fixed_typed_array()) {
1570 if (instr->representation().IsDouble()) { 1561 if (instr->representation().IsDouble()) {
1571 LOperand* temp = (!instr->key()->IsConstant() || 1562 LOperand* temp = (!instr->key()->IsConstant() ||
1572 instr->RequiresHoleCheck()) 1563 instr->RequiresHoleCheck())
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 2541
2551 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2542 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2552 LOperand* receiver = UseRegister(instr->receiver()); 2543 LOperand* receiver = UseRegister(instr->receiver());
2553 LOperand* function = UseRegister(instr->function()); 2544 LOperand* function = UseRegister(instr->function());
2554 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2545 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2555 return AssignEnvironment(DefineAsRegister(result)); 2546 return AssignEnvironment(DefineAsRegister(result));
2556 } 2547 }
2557 2548
2558 } // namespace internal 2549 } // namespace internal
2559 } // namespace v8 2550 } // 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