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

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

Issue 1511433005: Version 4.8.271.9 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.8
Patch Set: Created 5 years 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/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 1599
1600 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { 1600 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> {
1601 public: 1601 public:
1602 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") 1602 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1603 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) 1603 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1604 1604
1605 Heap::RootListIndex index() const { return hydrogen()->index(); } 1605 Heap::RootListIndex index() const { return hydrogen()->index(); }
1606 }; 1606 };
1607 1607
1608 1608
1609 class LLoadKeyed final : public LTemplateInstruction<1, 2, 0> { 1609 class LLoadKeyed final : public LTemplateInstruction<1, 3, 0> {
1610 public: 1610 public:
1611 LLoadKeyed(LOperand* elements, LOperand* key) { 1611 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) {
1612 inputs_[0] = elements; 1612 inputs_[0] = elements;
1613 inputs_[1] = key; 1613 inputs_[1] = key;
1614 inputs_[2] = backing_store_owner;
1614 } 1615 }
1615 LOperand* elements() { return inputs_[0]; } 1616 LOperand* elements() { return inputs_[0]; }
1616 LOperand* key() { return inputs_[1]; } 1617 LOperand* key() { return inputs_[1]; }
1618 LOperand* backing_store_owner() { return inputs_[2]; }
1617 ElementsKind elements_kind() const { 1619 ElementsKind elements_kind() const {
1618 return hydrogen()->elements_kind(); 1620 return hydrogen()->elements_kind();
1619 } 1621 }
1620 bool is_fixed_typed_array() const { 1622 bool is_fixed_typed_array() const {
1621 return hydrogen()->is_fixed_typed_array(); 1623 return hydrogen()->is_fixed_typed_array();
1622 } 1624 }
1623 1625
1624 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1626 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1625 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1627 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1626 1628
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 2172
2171 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2173 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2172 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2174 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2173 2175
2174 void PrintDataTo(StringStream* stream) override; 2176 void PrintDataTo(StringStream* stream) override;
2175 Handle<Object> name() const { return hydrogen()->name(); } 2177 Handle<Object> name() const { return hydrogen()->name(); }
2176 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2178 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2177 }; 2179 };
2178 2180
2179 2181
2180 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2182 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
2181 public: 2183 public:
2182 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { 2184 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val,
2185 LOperand* backing_store_owner) {
2183 inputs_[0] = obj; 2186 inputs_[0] = obj;
2184 inputs_[1] = key; 2187 inputs_[1] = key;
2185 inputs_[2] = val; 2188 inputs_[2] = val;
2189 inputs_[3] = backing_store_owner;
2186 } 2190 }
2187 2191
2188 bool is_fixed_typed_array() const { 2192 bool is_fixed_typed_array() const {
2189 return hydrogen()->is_fixed_typed_array(); 2193 return hydrogen()->is_fixed_typed_array();
2190 } 2194 }
2191 LOperand* elements() { return inputs_[0]; } 2195 LOperand* elements() { return inputs_[0]; }
2192 LOperand* key() { return inputs_[1]; } 2196 LOperand* key() { return inputs_[1]; }
2193 LOperand* value() { return inputs_[2]; } 2197 LOperand* value() { return inputs_[2]; }
2198 LOperand* backing_store_owner() { return inputs_[3]; }
2194 ElementsKind elements_kind() const { 2199 ElementsKind elements_kind() const {
2195 return hydrogen()->elements_kind(); 2200 return hydrogen()->elements_kind();
2196 } 2201 }
2197 2202
2198 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2203 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2199 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2204 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2200 2205
2201 void PrintDataTo(StringStream* stream) override; 2206 void PrintDataTo(StringStream* stream) override;
2202 uint32_t base_offset() const { return hydrogen()->base_offset(); } 2207 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2203 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2208 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2847 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2843 }; 2848 };
2844 2849
2845 #undef DECLARE_HYDROGEN_ACCESSOR 2850 #undef DECLARE_HYDROGEN_ACCESSOR
2846 #undef DECLARE_CONCRETE_INSTRUCTION 2851 #undef DECLARE_CONCRETE_INSTRUCTION
2847 2852
2848 } // namespace internal 2853 } // namespace internal
2849 } // namespace v8 2854 } // namespace v8
2850 2855
2851 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2856 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698