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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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(MathSin) \ 97 V(MathSin) \
99 V(MathExp) \ 98 V(MathExp) \
100 V(MathFloorD) \ 99 V(MathFloorD) \
101 V(MathFloorI) \ 100 V(MathFloorI) \
102 V(MathFround) \ 101 V(MathFround) \
103 V(MathLog) \ 102 V(MathLog) \
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 } 1494 }
1496 1495
1497 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1496 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1498 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1497 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1499 1498
1500 void PrintDataTo(StringStream* stream) override; 1499 void PrintDataTo(StringStream* stream) override;
1501 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1500 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1502 }; 1501 };
1503 1502
1504 1503
1505 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> {
1506 public:
1507 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
1508 LOperand* vector) {
1509 inputs_[0] = context;
1510 inputs_[1] = object;
1511 inputs_[2] = key;
1512 temps_[0] = vector;
1513 }
1514
1515 LOperand* context() { return inputs_[0]; }
1516 LOperand* object() { return inputs_[1]; }
1517 LOperand* key() { return inputs_[2]; }
1518 LOperand* temp_vector() { return temps_[0]; }
1519
1520 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1521 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1522 };
1523
1524 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1504 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1525 public: 1505 public:
1526 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } 1506 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; }
1527 1507
1528 LOperand* context() { return inputs_[0]; } 1508 LOperand* context() { return inputs_[0]; }
1529 1509
1530 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1510 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1531 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1511 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1532 1512
1533 int slot_index() { return hydrogen()->slot_index(); } 1513 int slot_index() { return hydrogen()->slot_index(); }
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
2455 2435
2456 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2436 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2457 }; 2437 };
2458 2438
2459 #undef DECLARE_HYDROGEN_ACCESSOR 2439 #undef DECLARE_HYDROGEN_ACCESSOR
2460 #undef DECLARE_CONCRETE_INSTRUCTION 2440 #undef DECLARE_CONCRETE_INSTRUCTION
2461 } // namespace internal 2441 } // namespace internal
2462 } // namespace v8 2442 } // namespace v8
2463 2443
2464 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2444 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698