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

Side by Side Diff: src/crankshaft/s390/lithium-s390.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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.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_S390_LITHIUM_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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(MathFloor) \ 100 V(MathFloor) \
102 V(MathFround) \ 101 V(MathFround) \
103 V(MathLog) \ 102 V(MathLog) \
104 V(MathMinMax) \ 103 V(MathMinMax) \
105 V(MathPowHalf) \ 104 V(MathPowHalf) \
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 class LLoadNamedField final : public LTemplateInstruction<1, 1, 0> { 1349 class LLoadNamedField final : public LTemplateInstruction<1, 1, 0> {
1351 public: 1350 public:
1352 explicit LLoadNamedField(LOperand* object) { inputs_[0] = object; } 1351 explicit LLoadNamedField(LOperand* object) { inputs_[0] = object; }
1353 1352
1354 LOperand* object() { return inputs_[0]; } 1353 LOperand* object() { return inputs_[0]; }
1355 1354
1356 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") 1355 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1357 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) 1356 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1358 }; 1357 };
1359 1358
1360 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> {
1361 public:
1362 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) {
1363 inputs_[0] = context;
1364 inputs_[1] = object;
1365 temps_[0] = vector;
1366 }
1367
1368 LOperand* context() { return inputs_[0]; }
1369 LOperand* object() { return inputs_[1]; }
1370 LOperand* temp_vector() { return temps_[0]; }
1371
1372 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1373 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1374
1375 Handle<Object> name() const { return hydrogen()->name(); }
1376 };
1377
1378 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { 1359 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> {
1379 public: 1360 public:
1380 explicit LLoadFunctionPrototype(LOperand* function) { inputs_[0] = function; } 1361 explicit LLoadFunctionPrototype(LOperand* function) { inputs_[0] = function; }
1381 1362
1382 LOperand* function() { return inputs_[0]; } 1363 LOperand* function() { return inputs_[0]; }
1383 1364
1384 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") 1365 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1385 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) 1366 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1386 }; 1367 };
1387 1368
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 2300
2320 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2301 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2321 }; 2302 };
2322 2303
2323 #undef DECLARE_HYDROGEN_ACCESSOR 2304 #undef DECLARE_HYDROGEN_ACCESSOR
2324 #undef DECLARE_CONCRETE_INSTRUCTION 2305 #undef DECLARE_CONCRETE_INSTRUCTION
2325 } // namespace internal 2306 } // namespace internal
2326 } // namespace v8 2307 } // namespace v8
2327 2308
2328 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2309 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698