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

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

Issue 2396023002: [crankshaft] Remove HLoadGlobalGeneric and use HCallWithDescriptor instead to call LoadGlobalIC. (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 | « no previous file | src/crankshaft/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 V(InvokeFunction) \ 82 V(InvokeFunction) \
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(LoadGlobalGeneric) \
93 V(LoadKeyed) \ 92 V(LoadKeyed) \
94 V(LoadKeyedGeneric) \ 93 V(LoadKeyedGeneric) \
95 V(LoadNamedField) \ 94 V(LoadNamedField) \
96 V(LoadNamedGeneric) \ 95 V(LoadNamedGeneric) \
97 V(MathAbs) \ 96 V(MathAbs) \
98 V(MathClz32) \ 97 V(MathClz32) \
99 V(MathCos) \ 98 V(MathCos) \
100 V(MathSin) \ 99 V(MathSin) \
101 V(MathExp) \ 100 V(MathExp) \
102 V(MathFloor) \ 101 V(MathFloor) \
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 1562
1564 LOperand* context() { return inputs_[0]; } 1563 LOperand* context() { return inputs_[0]; }
1565 LOperand* object() { return inputs_[1]; } 1564 LOperand* object() { return inputs_[1]; }
1566 LOperand* key() { return inputs_[2]; } 1565 LOperand* key() { return inputs_[2]; }
1567 LOperand* temp_vector() { return temps_[0]; } 1566 LOperand* temp_vector() { return temps_[0]; }
1568 1567
1569 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1568 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1570 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) 1569 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric)
1571 }; 1570 };
1572 1571
1573 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> {
1574 public:
1575 LLoadGlobalGeneric(LOperand* context, LOperand* vector) {
1576 inputs_[0] = context;
1577 temps_[0] = vector;
1578 }
1579
1580 LOperand* context() { return inputs_[0]; }
1581 LOperand* temp_vector() { return temps_[0]; }
1582
1583 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1584 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1585
1586 Handle<Object> name() const { return hydrogen()->name(); }
1587 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1588 };
1589
1590
1591 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1572 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1592 public: 1573 public:
1593 explicit LLoadContextSlot(LOperand* context) { 1574 explicit LLoadContextSlot(LOperand* context) {
1594 inputs_[0] = context; 1575 inputs_[0] = context;
1595 } 1576 }
1596 1577
1597 LOperand* context() { return inputs_[0]; } 1578 LOperand* context() { return inputs_[0]; }
1598 1579
1599 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1580 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1600 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1581 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2554 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2574 }; 2555 };
2575 2556
2576 #undef DECLARE_HYDROGEN_ACCESSOR 2557 #undef DECLARE_HYDROGEN_ACCESSOR
2577 #undef DECLARE_CONCRETE_INSTRUCTION 2558 #undef DECLARE_CONCRETE_INSTRUCTION
2578 2559
2579 } // namespace internal 2560 } // namespace internal
2580 } // namespace v8 2561 } // namespace v8
2581 2562
2582 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2563 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698