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

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

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge with latest Created 8 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 | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } 245 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
246 LPointerMap* pointer_map() const { return pointer_map_.get(); } 246 LPointerMap* pointer_map() const { return pointer_map_.get(); }
247 bool HasPointerMap() const { return pointer_map_.is_set(); } 247 bool HasPointerMap() const { return pointer_map_.is_set(); }
248 248
249 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 249 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
250 HValue* hydrogen_value() const { return hydrogen_value_; } 250 HValue* hydrogen_value() const { return hydrogen_value_; }
251 251
252 void MarkAsCall() { is_call_ = true; } 252 void MarkAsCall() { is_call_ = true; }
253 253
254 // Interface to the register allocator and iterators.
255 bool ClobbersTemps() const { return is_call_; }
256 bool ClobbersRegisters() const { return is_call_; }
257 bool ClobbersDoubleRegisters() const { return is_call_; }
258
254 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } 259 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
255 260
256 // Interface to the register allocator and iterators. 261 // Interface to the register allocator and iterators.
257 bool IsMarkedAsCall() const { return is_call_; } 262 bool IsMarkedAsCall() const { return is_call_; }
258 263
259 virtual bool HasResult() const = 0; 264 virtual bool HasResult() const = 0;
260 virtual LOperand* result() = 0; 265 virtual LOperand* result() = 0;
261 266
262 LOperand* FirstInput() { return InputAt(0); } 267 LOperand* FirstInput() { return InputAt(0); }
263 LOperand* Output() { return HasResult() ? result() : NULL; } 268 LOperand* Output() { return HasResult() ? result() : NULL; }
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 2264
2260 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); 2265 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2261 void MarkSpilledDoubleRegister(int allocation_index, 2266 void MarkSpilledDoubleRegister(int allocation_index,
2262 LOperand* spill_operand); 2267 LOperand* spill_operand);
2263 2268
2264 private: 2269 private:
2265 // Arrays of spill slot operands for registers with an assigned spill 2270 // Arrays of spill slot operands for registers with an assigned spill
2266 // slot, i.e., that must also be restored to the spill slot on OSR entry. 2271 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2267 // NULL if the register has no assigned spill slot. Indexed by allocation 2272 // NULL if the register has no assigned spill slot. Indexed by allocation
2268 // index. 2273 // index.
2269 LOperand* register_spills_[Register::kNumAllocatableRegisters]; 2274 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters];
2270 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; 2275 LOperand* double_register_spills_[
2276 DoubleRegister::kMaxNumAllocatableRegisters];
2271 }; 2277 };
2272 2278
2273 2279
2274 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2280 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2275 public: 2281 public:
2276 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2282 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2277 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2283 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2278 2284
2279 Label* done_label() { return &done_label_; } 2285 Label* done_label() { return &done_label_; }
2280 2286
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 2512
2507 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2513 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2508 }; 2514 };
2509 2515
2510 #undef DECLARE_HYDROGEN_ACCESSOR 2516 #undef DECLARE_HYDROGEN_ACCESSOR
2511 #undef DECLARE_CONCRETE_INSTRUCTION 2517 #undef DECLARE_CONCRETE_INSTRUCTION
2512 2518
2513 } } // namespace v8::int 2519 } } // namespace v8::int
2514 2520
2515 #endif // V8_X64_LITHIUM_X64_H_ 2521 #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