Index: src/x64/lithium-x64.h |
=================================================================== |
--- src/x64/lithium-x64.h (revision 6214) |
+++ src/x64/lithium-x64.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright 2010 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -45,6 +45,9 @@ |
LInstruction() { } |
virtual ~LInstruction() { } |
+ virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); } |
+ virtual void PrintDataTo(StringStream* stream) const { } |
+ |
// Predicates should be generated by macro as in lithium-ia32.h. |
virtual bool IsLabel() const { |
UNIMPLEMENTED(); |
@@ -55,18 +58,31 @@ |
return false; |
} |
- LPointerMap* pointer_map() const { |
- UNIMPLEMENTED(); |
- return NULL; |
- } |
+ void set_environment(LEnvironment* env) { environment_.set(env); } |
+ LEnvironment* environment() const { return environment_.get(); } |
+ bool HasEnvironment() const { return environment_.is_set(); } |
- bool HasPointerMap() const { |
- UNIMPLEMENTED(); |
- return false; |
+ void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
+ LPointerMap* pointer_map() const { return pointer_map_.get(); } |
+ bool HasPointerMap() const { return pointer_map_.is_set(); } |
+ |
+ void set_result(LOperand* operand) { result_.set(operand); } |
+ LOperand* result() const { return result_.get(); } |
+ bool HasResult() const { return result_.is_set(); } |
+ |
+ void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
+ HValue* hydrogen_value() const { return hydrogen_value_; } |
+ |
+ void set_deoptimization_environment(LEnvironment* env) { |
+ deoptimization_environment_.set(env); |
} |
+ LEnvironment* deoptimization_environment() const { |
+ return deoptimization_environment_.get(); |
+ } |
+ bool HasDeoptimizationEnvironment() const { |
+ return deoptimization_environment_.is_set(); |
+ } |
- virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); } |
- |
private: |
SetOncePointer<LEnvironment> environment_; |
SetOncePointer<LPointerMap> pointer_map_; |