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

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

Issue 11414262: Revert 13105: "Enable stub generation using Hydrogen/Lithium." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
259 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } 254 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
260 255
261 // Interface to the register allocator and iterators. 256 // Interface to the register allocator and iterators.
262 bool IsMarkedAsCall() const { return is_call_; } 257 bool IsMarkedAsCall() const { return is_call_; }
263 258
264 virtual bool HasResult() const = 0; 259 virtual bool HasResult() const = 0;
265 virtual LOperand* result() = 0; 260 virtual LOperand* result() = 0;
266 261
267 LOperand* FirstInput() { return InputAt(0); } 262 LOperand* FirstInput() { return InputAt(0); }
268 LOperand* Output() { return HasResult() ? result() : NULL; } 263 LOperand* Output() { return HasResult() ? result() : NULL; }
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 2259
2265 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); 2260 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2266 void MarkSpilledDoubleRegister(int allocation_index, 2261 void MarkSpilledDoubleRegister(int allocation_index,
2267 LOperand* spill_operand); 2262 LOperand* spill_operand);
2268 2263
2269 private: 2264 private:
2270 // Arrays of spill slot operands for registers with an assigned spill 2265 // Arrays of spill slot operands for registers with an assigned spill
2271 // slot, i.e., that must also be restored to the spill slot on OSR entry. 2266 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2272 // NULL if the register has no assigned spill slot. Indexed by allocation 2267 // NULL if the register has no assigned spill slot. Indexed by allocation
2273 // index. 2268 // index.
2274 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; 2269 LOperand* register_spills_[Register::kNumAllocatableRegisters];
2275 LOperand* double_register_spills_[ 2270 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
2276 DoubleRegister::kMaxNumAllocatableRegisters];
2277 }; 2271 };
2278 2272
2279 2273
2280 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2274 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2281 public: 2275 public:
2282 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2276 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2283 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2277 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2284 2278
2285 Label* done_label() { return &done_label_; } 2279 Label* done_label() { return &done_label_; }
2286 2280
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 2506
2513 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2507 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2514 }; 2508 };
2515 2509
2516 #undef DECLARE_HYDROGEN_ACCESSOR 2510 #undef DECLARE_HYDROGEN_ACCESSOR
2517 #undef DECLARE_CONCRETE_INSTRUCTION 2511 #undef DECLARE_CONCRETE_INSTRUCTION
2518 2512
2519 } } // namespace v8::int 2513 } } // namespace v8::int
2520 2514
2521 #endif // V8_X64_LITHIUM_X64_H_ 2515 #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