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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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(MathCos) \ 95 V(MathCos) \
97 V(MathSin) \ 96 V(MathSin) \
98 V(MathExp) \ 97 V(MathExp) \
99 V(MathClz32) \ 98 V(MathClz32) \
100 V(MathFloor) \ 99 V(MathFloor) \
101 V(MathFround) \ 100 V(MathFround) \
102 V(MathLog) \ 101 V(MathLog) \
103 V(MathMinMax) \ 102 V(MathMinMax) \
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1486 }
1488 1487
1489 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1488 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1490 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1489 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1491 1490
1492 void PrintDataTo(StringStream* stream) override; 1491 void PrintDataTo(StringStream* stream) override;
1493 uint32_t base_offset() const { return hydrogen()->base_offset(); } 1492 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1494 }; 1493 };
1495 1494
1496 1495
1497 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> {
1498 public:
1499 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
1500 LOperand* vector) {
1501 inputs_[0] = context;
1502 inputs_[1] = object;
1503 inputs_[2] = key;
1504 temps_[0] = vector;
1505 }
1506
1507 LOperand* context() { return inputs_[0]; }
1508 LOperand* object() { return inputs_[1]; }
1509 LOperand* key() { return inputs_[2]; }
1510 LOperand* temp_vector() { return temps_[0]; }
1511
1512 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1513 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1514 };
1515
1516 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1496 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1517 public: 1497 public:
1518 explicit LLoadContextSlot(LOperand* context) { 1498 explicit LLoadContextSlot(LOperand* context) {
1519 inputs_[0] = context; 1499 inputs_[0] = context;
1520 } 1500 }
1521 1501
1522 LOperand* context() { return inputs_[0]; } 1502 LOperand* context() { return inputs_[0]; }
1523 1503
1524 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1504 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1525 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1505 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2473 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2494 }; 2474 };
2495 2475
2496 #undef DECLARE_HYDROGEN_ACCESSOR 2476 #undef DECLARE_HYDROGEN_ACCESSOR
2497 #undef DECLARE_CONCRETE_INSTRUCTION 2477 #undef DECLARE_CONCRETE_INSTRUCTION
2498 2478
2499 } // namespace internal 2479 } // namespace internal
2500 } // namespace v8 2480 } // namespace v8
2501 2481
2502 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2482 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698