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

Side by Side Diff: src/arm/lithium-arm.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/arm/deoptimizer-arm.cc ('k') | src/arm/lithium-arm.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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool HasPointerMap() const { return pointer_map_.is_set(); } 249 bool HasPointerMap() const { return pointer_map_.is_set(); }
250 250
251 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } 251 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
252 HValue* hydrogen_value() const { return hydrogen_value_; } 252 HValue* hydrogen_value() const { return hydrogen_value_; }
253 253
254 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { } 254 virtual void SetDeferredLazyDeoptimizationEnvironment(LEnvironment* env) { }
255 255
256 void MarkAsCall() { is_call_ = true; } 256 void MarkAsCall() { is_call_ = true; }
257 257
258 // Interface to the register allocator and iterators. 258 // Interface to the register allocator and iterators.
259 bool ClobbersTemps() const { return is_call_; }
260 bool ClobbersRegisters() const { return is_call_; }
261 bool ClobbersDoubleRegisters() const { return is_call_; }
262
263 // Interface to the register allocator and iterators.
264 bool IsMarkedAsCall() const { return is_call_; } 259 bool IsMarkedAsCall() const { return is_call_; }
265 260
266 virtual bool HasResult() const = 0; 261 virtual bool HasResult() const = 0;
267 virtual LOperand* result() = 0; 262 virtual LOperand* result() = 0;
268 263
269 LOperand* FirstInput() { return InputAt(0); } 264 LOperand* FirstInput() { return InputAt(0); }
270 LOperand* Output() { return HasResult() ? result() : NULL; } 265 LOperand* Output() { return HasResult() ? result() : NULL; }
271 266
272 #ifdef DEBUG 267 #ifdef DEBUG
273 void VerifyCall(); 268 void VerifyCall();
(...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 2352
2358 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand); 2353 void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
2359 void MarkSpilledDoubleRegister(int allocation_index, 2354 void MarkSpilledDoubleRegister(int allocation_index,
2360 LOperand* spill_operand); 2355 LOperand* spill_operand);
2361 2356
2362 private: 2357 private:
2363 // Arrays of spill slot operands for registers with an assigned spill 2358 // Arrays of spill slot operands for registers with an assigned spill
2364 // slot, i.e., that must also be restored to the spill slot on OSR entry. 2359 // slot, i.e., that must also be restored to the spill slot on OSR entry.
2365 // NULL if the register has no assigned spill slot. Indexed by allocation 2360 // NULL if the register has no assigned spill slot. Indexed by allocation
2366 // index. 2361 // index.
2367 LOperand* register_spills_[Register::kMaxNumAllocatableRegisters]; 2362 LOperand* register_spills_[Register::kNumAllocatableRegisters];
2368 LOperand* double_register_spills_[ 2363 LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
2369 DoubleRegister::kMaxNumAllocatableRegisters];
2370 }; 2364 };
2371 2365
2372 2366
2373 class LStackCheck: public LTemplateInstruction<0, 0, 0> { 2367 class LStackCheck: public LTemplateInstruction<0, 0, 0> {
2374 public: 2368 public:
2375 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") 2369 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
2376 DECLARE_HYDROGEN_ACCESSOR(StackCheck) 2370 DECLARE_HYDROGEN_ACCESSOR(StackCheck)
2377 2371
2378 Label* done_label() { return &done_label_; } 2372 Label* done_label() { return &done_label_; }
2379 2373
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 2613
2620 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2614 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2621 }; 2615 };
2622 2616
2623 #undef DECLARE_HYDROGEN_ACCESSOR 2617 #undef DECLARE_HYDROGEN_ACCESSOR
2624 #undef DECLARE_CONCRETE_INSTRUCTION 2618 #undef DECLARE_CONCRETE_INSTRUCTION
2625 2619
2626 } } // namespace v8::internal 2620 } } // namespace v8::internal
2627 2621
2628 #endif // V8_ARM_LITHIUM_ARM_H_ 2622 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698