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

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

Issue 1228113008: Crankshaft part of the 'loads and stores to global vars through property cell shortcuts' feature. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments + regression test Created 5 years, 5 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/ppc/lithium-codegen-ppc.cc ('k') | src/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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_PPC_LITHIUM_PPC_H_
6 #define V8_PPC_LITHIUM_PPC_H_ 6 #define V8_PPC_LITHIUM_PPC_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 V(IsStringAndBranch) \ 95 V(IsStringAndBranch) \
96 V(IsSmiAndBranch) \ 96 V(IsSmiAndBranch) \
97 V(IsUndetectableAndBranch) \ 97 V(IsUndetectableAndBranch) \
98 V(Label) \ 98 V(Label) \
99 V(LazyBailout) \ 99 V(LazyBailout) \
100 V(LoadContextSlot) \ 100 V(LoadContextSlot) \
101 V(LoadRoot) \ 101 V(LoadRoot) \
102 V(LoadFieldByIndex) \ 102 V(LoadFieldByIndex) \
103 V(LoadFunctionPrototype) \ 103 V(LoadFunctionPrototype) \
104 V(LoadGlobalGeneric) \ 104 V(LoadGlobalGeneric) \
105 V(LoadGlobalViaContext) \
105 V(LoadKeyed) \ 106 V(LoadKeyed) \
106 V(LoadKeyedGeneric) \ 107 V(LoadKeyedGeneric) \
107 V(LoadNamedField) \ 108 V(LoadNamedField) \
108 V(LoadNamedGeneric) \ 109 V(LoadNamedGeneric) \
109 V(MapEnumLength) \ 110 V(MapEnumLength) \
110 V(MathAbs) \ 111 V(MathAbs) \
111 V(MathClz32) \ 112 V(MathClz32) \
112 V(MathExp) \ 113 V(MathExp) \
113 V(MathFloor) \ 114 V(MathFloor) \
114 V(MathFround) \ 115 V(MathFround) \
(...skipping 21 matching lines...) Expand all
136 V(Return) \ 137 V(Return) \
137 V(SeqStringGetChar) \ 138 V(SeqStringGetChar) \
138 V(SeqStringSetChar) \ 139 V(SeqStringSetChar) \
139 V(ShiftI) \ 140 V(ShiftI) \
140 V(SmiTag) \ 141 V(SmiTag) \
141 V(SmiUntag) \ 142 V(SmiUntag) \
142 V(StackCheck) \ 143 V(StackCheck) \
143 V(StoreCodeEntry) \ 144 V(StoreCodeEntry) \
144 V(StoreContextSlot) \ 145 V(StoreContextSlot) \
145 V(StoreFrameContext) \ 146 V(StoreFrameContext) \
147 V(StoreGlobalViaContext) \
146 V(StoreKeyed) \ 148 V(StoreKeyed) \
147 V(StoreKeyedGeneric) \ 149 V(StoreKeyedGeneric) \
148 V(StoreNamedField) \ 150 V(StoreNamedField) \
149 V(StoreNamedGeneric) \ 151 V(StoreNamedGeneric) \
150 V(StringAdd) \ 152 V(StringAdd) \
151 V(StringCharCodeAt) \ 153 V(StringCharCodeAt) \
152 V(StringCharFromCode) \ 154 V(StringCharFromCode) \
153 V(StringCompareAndBranch) \ 155 V(StringCompareAndBranch) \
154 V(SubI) \ 156 V(SubI) \
155 V(RSubI) \ 157 V(RSubI) \
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 LOperand* temp_vector() { return temps_[0]; } 1637 LOperand* temp_vector() { return temps_[0]; }
1636 1638
1637 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1639 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1638 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1640 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1639 1641
1640 Handle<Object> name() const { return hydrogen()->name(); } 1642 Handle<Object> name() const { return hydrogen()->name(); }
1641 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } 1643 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1642 }; 1644 };
1643 1645
1644 1646
1647 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> {
1648 public:
1649 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; }
1650
1651 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context")
1652 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext)
1653
1654 void PrintDataTo(StringStream* stream) override;
1655
1656 LOperand* context() { return inputs_[0]; }
1657
1658 Handle<Object> name() const { return hydrogen()->name(); }
1659 int depth() const { return hydrogen()->depth(); }
1660 int slot_index() const { return hydrogen()->slot_index(); }
1661 };
1662
1663
1645 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1664 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1646 public: 1665 public:
1647 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } 1666 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; }
1648 1667
1649 LOperand* context() { return inputs_[0]; } 1668 LOperand* context() { return inputs_[0]; }
1650 1669
1651 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1670 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1652 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1671 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1653 1672
1654 int slot_index() { return hydrogen()->slot_index(); } 1673 int slot_index() { return hydrogen()->slot_index(); }
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2130 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2112 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2131 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2113 2132
2114 void PrintDataTo(StringStream* stream) override; 2133 void PrintDataTo(StringStream* stream) override;
2115 2134
2116 Handle<Object> name() const { return hydrogen()->name(); } 2135 Handle<Object> name() const { return hydrogen()->name(); }
2117 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2136 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2118 }; 2137 };
2119 2138
2120 2139
2140 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> {
2141 public:
2142 LStoreGlobalViaContext(LOperand* context, LOperand* value) {
2143 inputs_[0] = context;
2144 inputs_[1] = value;
2145 }
2146
2147 LOperand* context() { return inputs_[0]; }
2148 LOperand* value() { return inputs_[1]; }
2149
2150 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext,
2151 "store-global-via-context")
2152 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext)
2153
2154 void PrintDataTo(StringStream* stream) override;
2155
2156 Handle<Object> name() const { return hydrogen()->name(); }
2157 int depth() { return hydrogen()->depth(); }
2158 int slot_index() { return hydrogen()->slot_index(); }
2159 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2160 };
2161
2162
2121 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2163 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2122 public: 2164 public:
2123 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2165 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2124 inputs_[0] = object; 2166 inputs_[0] = object;
2125 inputs_[1] = key; 2167 inputs_[1] = key;
2126 inputs_[2] = value; 2168 inputs_[2] = value;
2127 } 2169 }
2128 2170
2129 bool is_external() const { return hydrogen()->is_external(); } 2171 bool is_external() const { return hydrogen()->is_external(); }
2130 bool is_fixed_typed_array() const { 2172 bool is_fixed_typed_array() const {
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 2806
2765 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2807 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2766 }; 2808 };
2767 2809
2768 #undef DECLARE_HYDROGEN_ACCESSOR 2810 #undef DECLARE_HYDROGEN_ACCESSOR
2769 #undef DECLARE_CONCRETE_INSTRUCTION 2811 #undef DECLARE_CONCRETE_INSTRUCTION
2770 } 2812 }
2771 } // namespace v8::internal 2813 } // namespace v8::internal
2772 2814
2773 #endif // V8_PPC_LITHIUM_PPC_H_ 2815 #endif // V8_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | src/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698