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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_IA32_H_
6 #define V8_IA32_LITHIUM_IA32_H_ 6 #define V8_IA32_LITHIUM_IA32_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 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 return hydrogen()->is_fixed_typed_array(); 1635 return hydrogen()->is_fixed_typed_array();
1636 } 1636 }
1637 bool is_typed_elements() const { 1637 bool is_typed_elements() const {
1638 return is_external() || is_fixed_typed_array(); 1638 return is_external() || is_fixed_typed_array();
1639 } 1639 }
1640 1640
1641 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1641 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1642 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1642 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1643 1643
1644 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1644 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1645 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1645 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1646 bool key_is_smi() { 1646 bool key_is_smi() {
1647 return hydrogen()->key()->representation().IsTagged(); 1647 return hydrogen()->key()->representation().IsTagged();
1648 } 1648 }
1649 }; 1649 };
1650 1650
1651 1651
1652 inline static bool ExternalArrayOpRequiresTemp( 1652 inline static bool ExternalArrayOpRequiresTemp(
1653 Representation key_representation, 1653 Representation key_representation,
1654 ElementsKind elements_kind) { 1654 ElementsKind elements_kind) {
1655 // Operations that require the key to be divided by two to be converted into 1655 // Operations that require the key to be divided by two to be converted into
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 LOperand* key() { return inputs_[1]; } 2215 LOperand* key() { return inputs_[1]; }
2216 LOperand* value() { return inputs_[2]; } 2216 LOperand* value() { return inputs_[2]; }
2217 ElementsKind elements_kind() const { 2217 ElementsKind elements_kind() const {
2218 return hydrogen()->elements_kind(); 2218 return hydrogen()->elements_kind();
2219 } 2219 }
2220 2220
2221 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2221 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2222 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2222 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2223 2223
2224 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2224 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2225 uint32_t additional_index() const { return hydrogen()->index_offset(); } 2225 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2226 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2226 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2227 }; 2227 };
2228 2228
2229 2229
2230 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { 2230 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> {
2231 public: 2231 public:
2232 LStoreKeyedGeneric(LOperand* context, 2232 LStoreKeyedGeneric(LOperand* context,
2233 LOperand* object, 2233 LOperand* object,
2234 LOperand* key, 2234 LOperand* key,
2235 LOperand* value) { 2235 LOperand* value) {
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2852 2852
2853 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2853 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2854 }; 2854 };
2855 2855
2856 #undef DECLARE_HYDROGEN_ACCESSOR 2856 #undef DECLARE_HYDROGEN_ACCESSOR
2857 #undef DECLARE_CONCRETE_INSTRUCTION 2857 #undef DECLARE_CONCRETE_INSTRUCTION
2858 2858
2859 } } // namespace v8::internal 2859 } } // namespace v8::internal
2860 2860
2861 #endif // V8_IA32_LITHIUM_IA32_H_ 2861 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698