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

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

Issue 11498006: Revert 13157, 13145 and 13140: Crankshaft code stubs. (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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } 246 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
247 LPointerMap* pointer_map() const { return pointer_map_.get(); } 247 LPointerMap* pointer_map() const { return pointer_map_.get(); }
248 bool HasPointerMap() const { return pointer_map_.is_set(); } 248 bool HasPointerMap() const { return pointer_map_.is_set(); }
249 249
250 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 250 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
251 HValue* hydrogen_value() const { return hydrogen_value_; } 251 HValue* hydrogen_value() const { return hydrogen_value_; }
252 252
253 void MarkAsCall() { is_call_ = true; } 253 void MarkAsCall() { is_call_ = true; }
254 254
255 // Interface to the register allocator and iterators.
256 bool ClobbersTemps() const { return is_call_; }
257 bool ClobbersRegisters() const { return is_call_; }
258 bool ClobbersDoubleRegisters() const { return is_call_; }
259
260 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } 255 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
261 256
262 // Interface to the register allocator and iterators. 257 // Interface to the register allocator and iterators.
263 bool IsMarkedAsCall() const { return is_call_; } 258 bool IsMarkedAsCall() const { return is_call_; }
264 259
265 virtual bool HasResult() const = 0; 260 virtual bool HasResult() const = 0;
266 virtual LOperand* result() = 0; 261 virtual LOperand* result() = 0;
267 262
268 LOperand* FirstInput() { return InputAt(0); } 263 LOperand* FirstInput() { return InputAt(0); }
269 LOperand* Output() { return HasResult() ? result() : NULL; } 264 LOperand* Output() { return HasResult() ? result() : NULL; }
(...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 2284
2290 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); 2285 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2291 void MarkSpilledDoubleRegister(int allocation_index, 2286 void MarkSpilledDoubleRegister(int allocation_index,
2292 LOperand* spill_operand); 2287 LOperand* spill_operand);
2293 2288
2294 private: 2289 private:
2295 // Arrays of spill slot operands for registers with an assigned spill 2290 // Arrays of spill slot operands for registers with an assigned spill
2296 // slot, i.e., that must also be restored to the spill slot on OSR entry. 2291 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2297 // NULL if the register has no assigned spill slot. Indexed by allocation 2292 // NULL if the register has no assigned spill slot. Indexed by allocation
2298 // index. 2293 // index.
2299 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; 2294 LOperand* register_spills_[Register::kNumAllocatableRegisters];
2300 LOperand* double_register_spills_[ 2295 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
2301 DoubleRegister::kMaxNumAllocatableRegisters];
2302 }; 2296 };
2303 2297
2304 2298
2305 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2299 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2306 public: 2300 public:
2307 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2301 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2308 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2302 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2309 2303
2310 Label* done_label() { return &done_label_; } 2304 Label* done_label() { return &done_label_; }
2311 2305
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 2531
2538 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2532 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2539 }; 2533 };
2540 2534
2541 #undef DECLARE_HYDROGEN_ACCESSOR 2535 #undef DECLARE_HYDROGEN_ACCESSOR
2542 #undef DECLARE_CONCRETE_INSTRUCTION 2536 #undef DECLARE_CONCRETE_INSTRUCTION
2543 2537
2544 } } // namespace v8::int 2538 } } // namespace v8::int
2545 2539
2546 #endif // V8_X64_LITHIUM_X64_H_ 2540 #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