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

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

Issue 295913009: Allow specifying base offset when constructing Keyed hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove more unnecessary code Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_X64_LITHIUM_X64_H_
6 #define V8_X64_LITHIUM_X64_H_ 6 #define V8_X64_LITHIUM_X64_H_
7 7
8 #include "hydrogen.h" 8 #include "hydrogen.h"
9 #include "lithium-allocator.h" 9 #include "lithium-allocator.h"
10 #include "lithium.h" 10 #include "lithium.h"
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 } 1621 }
1622 bool is_fixed_typed_array() const { 1622 bool is_fixed_typed_array() const {
1623 return hydrogen()->is_fixed_typed_array(); 1623 return hydrogen()->is_fixed_typed_array();
1624 } 1624 }
1625 bool is_typed_elements() const { 1625 bool is_typed_elements() const {
1626 return is_external() || is_fixed_typed_array(); 1626 return is_external() || is_fixed_typed_array();
1627 } 1627 }
1628 LOperand* elements() { return inputs_[0]; } 1628 LOperand* elements() { return inputs_[0]; }
1629 LOperand* key() { return inputs_[1]; } 1629 LOperand* key() { return inputs_[1]; }
1630 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1630 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1631 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1631 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1632 ElementsKind elements_kind() const { 1632 ElementsKind elements_kind() const {
1633 return hydrogen()->elements_kind(); 1633 return hydrogen()->elements_kind();
1634 } 1634 }
1635 }; 1635 };
1636 1636
1637 1637
1638 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1638 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1639 public: 1639 public:
1640 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { 1640 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
1641 inputs_[0] = context; 1641 inputs_[0] = context;
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 LOperand* elements() { return inputs_[0]; } 2177 LOperand* elements() { return inputs_[0]; }
2178 LOperand* key() { return inputs_[1]; } 2178 LOperand* key() { return inputs_[1]; }
2179 LOperand* value() { return inputs_[2]; } 2179 LOperand* value() { return inputs_[2]; }
2180 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } 2180 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); }
2181 2181
2182 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2182 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2183 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2183 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2184 2184
2185 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2185 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2186 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2186 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2187 uint32_t additional_index() const { return hydrogen()->index_offset(); } 2187 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2188 }; 2188 };
2189 2189
2190 2190
2191 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { 2191 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> {
2192 public: 2192 public:
2193 LStoreKeyedGeneric(LOperand* context, 2193 LStoreKeyedGeneric(LOperand* context,
2194 LOperand* object, 2194 LOperand* object,
2195 LOperand* key, 2195 LOperand* key,
2196 LOperand* value) { 2196 LOperand* value) {
2197 inputs_[0] = context; 2197 inputs_[0] = context;
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
2826 2826
2827 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2827 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2828 }; 2828 };
2829 2829
2830 #undef DECLARE_HYDROGEN_ACCESSOR 2830 #undef DECLARE_HYDROGEN_ACCESSOR
2831 #undef DECLARE_CONCRETE_INSTRUCTION 2831 #undef DECLARE_CONCRETE_INSTRUCTION
2832 2832
2833 } } // namespace v8::int 2833 } } // namespace v8::int
2834 2834
2835 #endif // V8_X64_LITHIUM_X64_H_ 2835 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698