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

Side by Side Diff: src/crankshaft/x64/lithium-x64.h

Issue 2391043005: [crankshaft] Remove HLoadKeyedGeneric and use HCallWithDescriptor to call KeyedLoadIC. (Closed)
Patch Set: Rebasing 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/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.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 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(IsStringAndBranch) \ 83 V(IsStringAndBranch) \
84 V(IsSmiAndBranch) \ 84 V(IsSmiAndBranch) \
85 V(IsUndetectableAndBranch) \ 85 V(IsUndetectableAndBranch) \
86 V(Label) \ 86 V(Label) \
87 V(LazyBailout) \ 87 V(LazyBailout) \
88 V(LoadContextSlot) \ 88 V(LoadContextSlot) \
89 V(LoadRoot) \ 89 V(LoadRoot) \
90 V(LoadFieldByIndex) \ 90 V(LoadFieldByIndex) \
91 V(LoadFunctionPrototype) \ 91 V(LoadFunctionPrototype) \
92 V(LoadKeyed) \ 92 V(LoadKeyed) \
93 V(LoadKeyedGeneric) \
94 V(LoadNamedField) \ 93 V(LoadNamedField) \
95 V(MathAbs) \ 94 V(MathAbs) \
96 V(MathClz32) \ 95 V(MathClz32) \
97 V(MathCos) \ 96 V(MathCos) \
98 V(MathExp) \ 97 V(MathExp) \
99 V(MathFloorD) \ 98 V(MathFloorD) \
100 V(MathFloorI) \ 99 V(MathFloorI) \
101 V(MathFround) \ 100 V(MathFround) \
102 V(MathLog) \ 101 V(MathLog) \
103 V(MathMinMax) \ 102 V(MathMinMax) \
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 LOperand* key() { return inputs_[1]; } 1539 LOperand* key() { return inputs_[1]; }
1541 LOperand* backing_store_owner() { return inputs_[2]; } 1540 LOperand* backing_store_owner() { return inputs_[2]; }
1542 void PrintDataTo(StringStream* stream) override; 1541 void PrintDataTo(StringStream* stream) override;
1543 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1542 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1544 ElementsKind elements_kind() const { 1543 ElementsKind elements_kind() const {
1545 return hydrogen()->elements_kind(); 1544 return hydrogen()->elements_kind();
1546 } 1545 }
1547 }; 1546 };
1548 1547
1549 1548
1550 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> {
1551 public:
1552 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key,
1553 LOperand* vector) {
1554 inputs_[0] = context;
1555 inputs_[1] = obj;
1556 inputs_[2] = key;
1557 temps_[0] = vector;
1558 }
1559
1560 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1561 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1562
1563 LOperand* context() { return inputs_[0]; }
1564 LOperand* object() { return inputs_[1]; }
1565 LOperand* key() { return inputs_[2]; }
1566 LOperand* temp_vector() { return temps_[0]; }
1567 };
1568
1569 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1549 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1570 public: 1550 public:
1571 explicit LLoadContextSlot(LOperand* context) { 1551 explicit LLoadContextSlot(LOperand* context) {
1572 inputs_[0] = context; 1552 inputs_[0] = context;
1573 } 1553 }
1574 1554
1575 LOperand* context() { return inputs_[0]; } 1555 LOperand* context() { return inputs_[0]; }
1576 1556
1577 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1557 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1578 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1558 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2539 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2519 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2540 }; 2520 };
2541 2521
2542 #undef DECLARE_HYDROGEN_ACCESSOR 2522 #undef DECLARE_HYDROGEN_ACCESSOR
2543 #undef DECLARE_CONCRETE_INSTRUCTION 2523 #undef DECLARE_CONCRETE_INSTRUCTION
2544 2524
2545 } // namespace internal 2525 } // namespace internal
2546 } // namespace v8 2526 } // namespace v8
2547 2527
2548 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2528 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698