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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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
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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 V(IsUndetectableAndBranch) \ 87 V(IsUndetectableAndBranch) \
88 V(Label) \ 88 V(Label) \
89 V(LazyBailout) \ 89 V(LazyBailout) \
90 V(LoadContextSlot) \ 90 V(LoadContextSlot) \
91 V(LoadRoot) \ 91 V(LoadRoot) \
92 V(LoadFieldByIndex) \ 92 V(LoadFieldByIndex) \
93 V(LoadFunctionPrototype) \ 93 V(LoadFunctionPrototype) \
94 V(LoadKeyed) \ 94 V(LoadKeyed) \
95 V(LoadKeyedGeneric) \ 95 V(LoadKeyedGeneric) \
96 V(LoadNamedField) \ 96 V(LoadNamedField) \
97 V(LoadNamedGeneric) \
98 V(MathAbs) \ 97 V(MathAbs) \
99 V(MathCos) \ 98 V(MathCos) \
100 V(MathSin) \ 99 V(MathSin) \
101 V(MathExp) \ 100 V(MathExp) \
102 V(MathClz32) \ 101 V(MathClz32) \
103 V(MathFloor) \ 102 V(MathFloor) \
104 V(MathFround) \ 103 V(MathFround) \
105 V(MathLog) \ 104 V(MathLog) \
106 V(MathMinMax) \ 105 V(MathMinMax) \
107 V(MathPowHalf) \ 106 V(MathPowHalf) \
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 inputs_[0] = object; 1501 inputs_[0] = object;
1503 } 1502 }
1504 1503
1505 LOperand* object() { return inputs_[0]; } 1504 LOperand* object() { return inputs_[0]; }
1506 1505
1507 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1506 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1508 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1507 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1509 }; 1508 };
1510 1509
1511 1510
1512 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> {
1513 public:
1514 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) {
1515 inputs_[0] = context;
1516 inputs_[1] = object;
1517 temps_[0] = vector;
1518 }
1519
1520 LOperand* context() { return inputs_[0]; }
1521 LOperand* object() { return inputs_[1]; }
1522 LOperand* temp_vector() { return temps_[0]; }
1523
1524 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1525 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1526
1527 Handle<Object> name() const { return hydrogen()->name(); }
1528 };
1529
1530
1531 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { 1511 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> {
1532 public: 1512 public:
1533 explicit LLoadFunctionPrototype(LOperand* function) { 1513 explicit LLoadFunctionPrototype(LOperand* function) {
1534 inputs_[0] = function; 1514 inputs_[0] = function;
1535 } 1515 }
1536 1516
1537 LOperand* function() { return inputs_[0]; } 1517 LOperand* function() { return inputs_[0]; }
1538 1518
1539 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1519 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1540 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1520 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2539 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2560 }; 2540 };
2561 2541
2562 #undef DECLARE_HYDROGEN_ACCESSOR 2542 #undef DECLARE_HYDROGEN_ACCESSOR
2563 #undef DECLARE_CONCRETE_INSTRUCTION 2543 #undef DECLARE_CONCRETE_INSTRUCTION
2564 2544
2565 } // namespace internal 2545 } // namespace internal
2566 } // namespace v8 2546 } // namespace v8
2567 2547
2568 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2548 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698