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

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

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool Is##type() const { return opcode() == k##type; } 213 bool Is##type() const { return opcode() == k##type; }
214 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_PREDICATE) 214 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_PREDICATE)
215 #undef DECLARE_PREDICATE 215 #undef DECLARE_PREDICATE
216 216
217 // Declare virtual predicates for instructions that don't have 217 // Declare virtual predicates for instructions that don't have
218 // an opcode. 218 // an opcode.
219 virtual bool IsGap() const { return false; } 219 virtual bool IsGap() const { return false; }
220 220
221 virtual bool IsControl() const { return false; } 221 virtual bool IsControl() const { return false; }
222 222
223 // Try deleting this instruction if possible.
224 virtual bool TryDelete() { return false; }
225
223 void set_environment(LEnvironment* env) { environment_ = env; } 226 void set_environment(LEnvironment* env) { environment_ = env; }
224 LEnvironment* environment() const { return environment_; } 227 LEnvironment* environment() const { return environment_; }
225 bool HasEnvironment() const { return environment_ != NULL; } 228 bool HasEnvironment() const { return environment_ != NULL; }
226 229
227 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } 230 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
228 LPointerMap* pointer_map() const { return pointer_map_.get(); } 231 LPointerMap* pointer_map() const { return pointer_map_.get(); }
229 bool HasPointerMap() const { return pointer_map_.is_set(); } 232 bool HasPointerMap() const { return pointer_map_.is_set(); }
230 233
231 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 234 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
232 HValue* hydrogen_value() const { return hydrogen_value_; } 235 HValue* hydrogen_value() const { return hydrogen_value_; }
(...skipping 18 matching lines...) Expand all
251 254
252 LOperand* FirstInput() { return InputAt(0); } 255 LOperand* FirstInput() { return InputAt(0); }
253 LOperand* Output() { return HasResult() ? result() : NULL; } 256 LOperand* Output() { return HasResult() ? result() : NULL; }
254 257
255 virtual bool HasInterestingComment(LCodeGen* gen) const { return true; } 258 virtual bool HasInterestingComment(LCodeGen* gen) const { return true; }
256 259
257 #ifdef DEBUG 260 #ifdef DEBUG
258 void VerifyCall(); 261 void VerifyCall();
259 #endif 262 #endif
260 263
264 virtual int InputCount() = 0;
265 virtual LOperand* InputAt(int i) = 0;
266
261 private: 267 private:
262 // Iterator interface. 268 // Iterator interface.
263 friend class InputIterator; 269 friend class InputIterator;
264 virtual int InputCount() = 0;
265 virtual LOperand* InputAt(int i) = 0;
266 270
267 friend class TempIterator; 271 friend class TempIterator;
268 virtual int TempCount() = 0; 272 virtual int TempCount() = 0;
269 virtual LOperand* TempAt(int i) = 0; 273 virtual LOperand* TempAt(int i) = 0;
270 274
271 class IsCallBits: public BitField<bool, 0, 1> {}; 275 class IsCallBits: public BitField<bool, 0, 1> {};
272 276
273 LEnvironment* environment_; 277 LEnvironment* environment_;
274 SetOncePointer<LPointerMap> pointer_map_; 278 SetOncePointer<LPointerMap> pointer_map_;
275 HValue* hydrogen_value_; 279 HValue* hydrogen_value_;
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2849 2853
2850 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2854 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2851 }; 2855 };
2852 2856
2853 #undef DECLARE_HYDROGEN_ACCESSOR 2857 #undef DECLARE_HYDROGEN_ACCESSOR
2854 #undef DECLARE_CONCRETE_INSTRUCTION 2858 #undef DECLARE_CONCRETE_INSTRUCTION
2855 2859
2856 } } // namespace v8::internal 2860 } } // namespace v8::internal
2857 2861
2858 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2862 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698