| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 38 // Forward declarations. | 38 // Forward declarations. |
| 39 class LCodeGen; | 39 class LCodeGen; |
| 40 class LEnvironment; | 40 class LEnvironment; |
| 41 class Translation; | 41 class Translation; |
| 42 | 42 |
| 43 class LInstruction: public ZoneObject { | 43 class LInstruction: public ZoneObject { |
| 44 public: | 44 public: |
| 45 LInstruction() { } | 45 LInstruction() { } |
| 46 virtual ~LInstruction() { } | 46 virtual ~LInstruction() { } |
| 47 | 47 |
| 48 virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); } |
| 49 virtual void PrintDataTo(StringStream* stream) const { } |
| 50 |
| 48 // Predicates should be generated by macro as in lithium-ia32.h. | 51 // Predicates should be generated by macro as in lithium-ia32.h. |
| 49 virtual bool IsLabel() const { | 52 virtual bool IsLabel() const { |
| 50 UNIMPLEMENTED(); | 53 UNIMPLEMENTED(); |
| 51 return false; | 54 return false; |
| 52 } | 55 } |
| 53 virtual bool IsOsrEntry() const { | 56 virtual bool IsOsrEntry() const { |
| 54 UNIMPLEMENTED(); | 57 UNIMPLEMENTED(); |
| 55 return false; | 58 return false; |
| 56 } | 59 } |
| 57 | 60 |
| 58 LPointerMap* pointer_map() const { | 61 void set_environment(LEnvironment* env) { environment_.set(env); } |
| 59 UNIMPLEMENTED(); | 62 LEnvironment* environment() const { return environment_.get(); } |
| 60 return NULL; | 63 bool HasEnvironment() const { return environment_.is_set(); } |
| 64 |
| 65 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
| 66 LPointerMap* pointer_map() const { return pointer_map_.get(); } |
| 67 bool HasPointerMap() const { return pointer_map_.is_set(); } |
| 68 |
| 69 void set_result(LOperand* operand) { result_.set(operand); } |
| 70 LOperand* result() const { return result_.get(); } |
| 71 bool HasResult() const { return result_.is_set(); } |
| 72 |
| 73 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
| 74 HValue* hydrogen_value() const { return hydrogen_value_; } |
| 75 |
| 76 void set_deoptimization_environment(LEnvironment* env) { |
| 77 deoptimization_environment_.set(env); |
| 61 } | 78 } |
| 62 | 79 LEnvironment* deoptimization_environment() const { |
| 63 bool HasPointerMap() const { | 80 return deoptimization_environment_.get(); |
| 64 UNIMPLEMENTED(); | |
| 65 return false; | |
| 66 } | 81 } |
| 67 | 82 bool HasDeoptimizationEnvironment() const { |
| 68 virtual void PrintTo(StringStream* stream) const { UNIMPLEMENTED(); } | 83 return deoptimization_environment_.is_set(); |
| 84 } |
| 69 | 85 |
| 70 private: | 86 private: |
| 71 SetOncePointer<LEnvironment> environment_; | 87 SetOncePointer<LEnvironment> environment_; |
| 72 SetOncePointer<LPointerMap> pointer_map_; | 88 SetOncePointer<LPointerMap> pointer_map_; |
| 73 SetOncePointer<LOperand> result_; | 89 SetOncePointer<LOperand> result_; |
| 74 HValue* hydrogen_value_; | 90 HValue* hydrogen_value_; |
| 75 SetOncePointer<LEnvironment> deoptimization_environment_; | 91 SetOncePointer<LEnvironment> deoptimization_environment_; |
| 76 }; | 92 }; |
| 77 | 93 |
| 78 | 94 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 LInstruction* instructions_pending_deoptimization_environment_; | 386 LInstruction* instructions_pending_deoptimization_environment_; |
| 371 int pending_deoptimization_ast_id_; | 387 int pending_deoptimization_ast_id_; |
| 372 | 388 |
| 373 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 389 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 374 }; | 390 }; |
| 375 | 391 |
| 376 | 392 |
| 377 } } // namespace v8::internal | 393 } } // namespace v8::internal |
| 378 | 394 |
| 379 #endif // V8_X64_LITHIUM_X64_H_ | 395 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |