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

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

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: First pass at pre-VFP2 RA Created 8 years, 1 month 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
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 bool HasPointerMap() const { return pointer_map_.is_set(); } 246 bool HasPointerMap() const { return pointer_map_.is_set(); }
247 247
248 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 248 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
249 HValue* hydrogen_value() const { return hydrogen_value_; } 249 HValue* hydrogen_value() const { return hydrogen_value_; }
250 250
251 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } 251 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
252 252
253 void MarkAsCall() { is_call_ = true; } 253 void MarkAsCall() { is_call_ = true; }
254 254
255 // Interface to the register allocator and iterators. 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 // Interface to the register allocator and iterators.
256 bool IsMarkedAsCall() const { return is_call_; } 261 bool IsMarkedAsCall() const { return is_call_; }
257 262
258 virtual bool HasResult() const = 0; 263 virtual bool HasResult() const = 0;
259 virtual LOperand* result() = 0; 264 virtual LOperand* result() = 0;
260 265
261 LOperand* FirstInput() { return InputAt(0); } 266 LOperand* FirstInput() { return InputAt(0); }
262 LOperand* Output() { return HasResult() ? result() : NULL; } 267 LOperand* Output() { return HasResult() ? result() : NULL; }
263 268
264 #ifdef DEBUG 269 #ifdef DEBUG
265 void VerifyCall(); 270 void VerifyCall();
(...skipping 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 2290
2286 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); 2291 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2287 void MarkSpilledDoubleRegister(int allocation_index, 2292 void MarkSpilledDoubleRegister(int allocation_index,
2288 LOperand* spill_operand); 2293 LOperand* spill_operand);
2289 2294
2290 private: 2295 private:
2291 // Arrays of spill slot operands for registers with an assigned spill 2296 // Arrays of spill slot operands for registers with an assigned spill
2292 // slot, i.e., that must also be restored to the spill slot on OSR entry. 2297 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2293 // NULL if the register has no assigned spill slot. Indexed by allocation 2298 // NULL if the register has no assigned spill slot. Indexed by allocation
2294 // index. 2299 // index.
2295 LOperand* register_spills_[Register::kNumAllocatableRegisters]; 2300 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters];
2296 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters]; 2301 LOperand* double_register_spills_[
2302 DoubleRegister::kMaxNumAllocatableRegisters];
2297 }; 2303 };
2298 2304
2299 2305
2300 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2306 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2301 public: 2307 public:
2302 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2308 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2303 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2309 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2304 2310
2305 Label* done_label() { return &done_label_; } 2311 Label* done_label() { return &done_label_; }
2306 2312
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 2551
2546 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2552 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2547 }; 2553 };
2548 2554
2549 #undef DECLARE_HYDROGEN_ACCESSOR 2555 #undef DECLARE_HYDROGEN_ACCESSOR
2550 #undef DECLARE_CONCRETE_INSTRUCTION 2556 #undef DECLARE_CONCRETE_INSTRUCTION
2551 2557
2552 } } // namespace v8::internal 2558 } } // namespace v8::internal
2553 2559
2554 #endif // V8_ARM_LITHIUM_ARM_H_ 2560 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698