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

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

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/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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) \ 93 V(LoadKeyedGeneric) \
94 V(LoadNamedField) \ 94 V(LoadNamedField) \
95 V(LoadNamedGeneric) \
96 V(MathAbs) \ 95 V(MathAbs) \
97 V(MathClz32) \ 96 V(MathClz32) \
98 V(MathCos) \ 97 V(MathCos) \
99 V(MathSin) \ 98 V(MathSin) \
100 V(MathExp) \ 99 V(MathExp) \
101 V(MathFloorD) \ 100 V(MathFloorD) \
102 V(MathFloorI) \ 101 V(MathFloorI) \
103 V(MathFround) \ 102 V(MathFround) \
104 V(MathLog) \ 103 V(MathLog) \
105 V(MathMinMax) \ 104 V(MathMinMax) \
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 public: 1451 public:
1453 explicit LLoadNamedField(LOperand* object) { inputs_[0] = object; } 1452 explicit LLoadNamedField(LOperand* object) { inputs_[0] = object; }
1454 1453
1455 LOperand* object() { return inputs_[0]; } 1454 LOperand* object() { return inputs_[0]; }
1456 1455
1457 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1456 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1458 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1457 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1459 }; 1458 };
1460 1459
1461 1460
1462 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> {
1463 public:
1464 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) {
1465 inputs_[0] = context;
1466 inputs_[1] = object;
1467 temps_[0] = vector;
1468 }
1469
1470 LOperand* context() { return inputs_[0]; }
1471 LOperand* object() { return inputs_[1]; }
1472 LOperand* temp_vector() { return temps_[0]; }
1473
1474 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1475 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1476
1477 Handle<Object> name() const { return hydrogen()->name(); }
1478 };
1479
1480
1481 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { 1461 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> {
1482 public: 1462 public:
1483 explicit LLoadFunctionPrototype(LOperand* function) { inputs_[0] = function; } 1463 explicit LLoadFunctionPrototype(LOperand* function) { inputs_[0] = function; }
1484 1464
1485 LOperand* function() { return inputs_[0]; } 1465 LOperand* function() { return inputs_[0]; }
1486 1466
1487 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1467 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1488 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1468 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1489 }; 1469 };
1490 1470
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2475 2455
2476 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2456 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2477 }; 2457 };
2478 2458
2479 #undef DECLARE_HYDROGEN_ACCESSOR 2459 #undef DECLARE_HYDROGEN_ACCESSOR
2480 #undef DECLARE_CONCRETE_INSTRUCTION 2460 #undef DECLARE_CONCRETE_INSTRUCTION
2481 } // namespace internal 2461 } // namespace internal
2482 } // namespace v8 2462 } // namespace v8
2483 2463
2484 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2464 #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