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

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

Issue 295743002: Refactor transitioning stores. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 LOperand* value() { return inputs_[0]; } 2138 LOperand* value() { return inputs_[0]; }
2139 bool needs_check() const { return needs_check_; } 2139 bool needs_check() const { return needs_check_; }
2140 2140
2141 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") 2141 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
2142 2142
2143 private: 2143 private:
2144 bool needs_check_; 2144 bool needs_check_;
2145 }; 2145 };
2146 2146
2147 2147
2148 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 1> { 2148 class LStoreNamedField V8_FINAL : public LTemplateInstruction<0, 2, 0> {
2149 public: 2149 public:
2150 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { 2150 LStoreNamedField(LOperand* object, LOperand* value) {
2151 inputs_[0] = object; 2151 inputs_[0] = object;
2152 inputs_[1] = value; 2152 inputs_[1] = value;
2153 temps_[0] = temp;
2154 } 2153 }
2155 2154
2156 LOperand* object() { return inputs_[0]; } 2155 LOperand* object() { return inputs_[0]; }
2157 LOperand* value() { return inputs_[1]; } 2156 LOperand* value() { return inputs_[1]; }
2158 LOperand* temp() { return temps_[0]; }
2159 2157
2160 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2158 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2161 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2159 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2162 2160
2163 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2161 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2164 2162
2165 Representation representation() const { 2163 Representation representation() const {
2166 return hydrogen()->field_representation(); 2164 return hydrogen()->field_representation();
2167 } 2165 }
2168 }; 2166 };
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 2854
2857 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2855 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2858 }; 2856 };
2859 2857
2860 #undef DECLARE_HYDROGEN_ACCESSOR 2858 #undef DECLARE_HYDROGEN_ACCESSOR
2861 #undef DECLARE_CONCRETE_INSTRUCTION 2859 #undef DECLARE_CONCRETE_INSTRUCTION
2862 2860
2863 } } // namespace v8::internal 2861 } } // namespace v8::internal
2864 2862
2865 #endif // V8_ARM_LITHIUM_ARM_H_ 2863 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698