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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 1607
1608 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { 1608 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> {
1609 public: 1609 public:
1610 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") 1610 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1611 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) 1611 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1612 1612
1613 Heap::RootListIndex index() const { return hydrogen()->index(); } 1613 Heap::RootListIndex index() const { return hydrogen()->index(); }
1614 }; 1614 };
1615 1615
1616 1616
1617 class LLoadKeyed final : public LTemplateInstruction<1, 2, 0> { 1617 class LLoadKeyed final : public LTemplateInstruction<1, 3, 0> {
1618 public: 1618 public:
1619 LLoadKeyed(LOperand* elements, LOperand* key) { 1619 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) {
1620 inputs_[0] = elements; 1620 inputs_[0] = elements;
1621 inputs_[1] = key; 1621 inputs_[1] = key;
1622 inputs_[2] = backing_store_owner;
1622 } 1623 }
1623 LOperand* elements() { return inputs_[0]; } 1624 LOperand* elements() { return inputs_[0]; }
1624 LOperand* key() { return inputs_[1]; } 1625 LOperand* key() { return inputs_[1]; }
1626 LOperand* backing_store_owner() { return inputs_[2]; }
1625 ElementsKind elements_kind() const { 1627 ElementsKind elements_kind() const {
1626 return hydrogen()->elements_kind(); 1628 return hydrogen()->elements_kind();
1627 } 1629 }
1628 bool is_fixed_typed_array() const { 1630 bool is_fixed_typed_array() const {
1629 return hydrogen()->is_fixed_typed_array(); 1631 return hydrogen()->is_fixed_typed_array();
1630 } 1632 }
1631 1633
1632 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1634 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1633 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1635 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1634 1636
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 2176
2175 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2177 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2176 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2178 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2177 2179
2178 void PrintDataTo(StringStream* stream) override; 2180 void PrintDataTo(StringStream* stream) override;
2179 Handle<Object> name() const { return hydrogen()->name(); } 2181 Handle<Object> name() const { return hydrogen()->name(); }
2180 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2182 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2181 }; 2183 };
2182 2184
2183 2185
2184 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2186 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> {
2185 public: 2187 public:
2186 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { 2188 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val,
2189 LOperand* backing_store_owner) {
2187 inputs_[0] = obj; 2190 inputs_[0] = obj;
2188 inputs_[1] = key; 2191 inputs_[1] = key;
2189 inputs_[2] = val; 2192 inputs_[2] = val;
2193 inputs_[3] = backing_store_owner;
2190 } 2194 }
2191 2195
2192 bool is_fixed_typed_array() const { 2196 bool is_fixed_typed_array() const {
2193 return hydrogen()->is_fixed_typed_array(); 2197 return hydrogen()->is_fixed_typed_array();
2194 } 2198 }
2195 LOperand* elements() { return inputs_[0]; } 2199 LOperand* elements() { return inputs_[0]; }
2196 LOperand* key() { return inputs_[1]; } 2200 LOperand* key() { return inputs_[1]; }
2197 LOperand* value() { return inputs_[2]; } 2201 LOperand* value() { return inputs_[2]; }
2202 LOperand* backing_store_owner() { return inputs_[3]; }
2198 ElementsKind elements_kind() const { 2203 ElementsKind elements_kind() const {
2199 return hydrogen()->elements_kind(); 2204 return hydrogen()->elements_kind();
2200 } 2205 }
2201 2206
2202 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2207 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2203 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2208 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2204 2209
2205 void PrintDataTo(StringStream* stream) override; 2210 void PrintDataTo(StringStream* stream) override;
2206 uint32_t base_offset() const { return hydrogen()->base_offset(); } 2211 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2207 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2212 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
2854 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2859 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2855 }; 2860 };
2856 2861
2857 #undef DECLARE_HYDROGEN_ACCESSOR 2862 #undef DECLARE_HYDROGEN_ACCESSOR
2858 #undef DECLARE_CONCRETE_INSTRUCTION 2863 #undef DECLARE_CONCRETE_INSTRUCTION
2859 2864
2860 } // namespace internal 2865 } // namespace internal
2861 } // namespace v8 2866 } // namespace v8
2862 2867
2863 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2868 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698