OLD | NEW |
1 // Copyright 2011 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 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 310 |
311 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } | 311 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
312 LPointerMap* pointer_map() const { return pointer_map_.get(); } | 312 LPointerMap* pointer_map() const { return pointer_map_.get(); } |
313 bool HasPointerMap() const { return pointer_map_.is_set(); } | 313 bool HasPointerMap() const { return pointer_map_.is_set(); } |
314 | 314 |
315 virtual bool HasResult() const = 0; | 315 virtual bool HasResult() const = 0; |
316 | 316 |
317 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 317 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
318 HValue* hydrogen_value() const { return hydrogen_value_; } | 318 HValue* hydrogen_value() const { return hydrogen_value_; } |
319 | 319 |
| 320 void set_deoptimization_environment(LEnvironment* env) { |
| 321 deoptimization_environment_.set(env); |
| 322 } |
| 323 LEnvironment* deoptimization_environment() const { |
| 324 return deoptimization_environment_.get(); |
| 325 } |
| 326 bool HasDeoptimizationEnvironment() const { |
| 327 return deoptimization_environment_.is_set(); |
| 328 } |
| 329 |
320 private: | 330 private: |
321 SetOncePointer<LEnvironment> environment_; | 331 SetOncePointer<LEnvironment> environment_; |
322 SetOncePointer<LPointerMap> pointer_map_; | 332 SetOncePointer<LPointerMap> pointer_map_; |
323 HValue* hydrogen_value_; | 333 HValue* hydrogen_value_; |
| 334 SetOncePointer<LEnvironment> deoptimization_environment_; |
324 }; | 335 }; |
325 | 336 |
326 | 337 |
327 template<typename ElementType, int NumElements> | 338 template<typename ElementType, int NumElements> |
328 class OperandContainer { | 339 class OperandContainer { |
329 public: | 340 public: |
330 OperandContainer() { | 341 OperandContainer() { |
331 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; | 342 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; |
332 } | 343 } |
333 int length() { return NumElements; } | 344 int length() { return NumElements; } |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1987 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1977 }; | 1988 }; |
1978 | 1989 |
1979 #undef DECLARE_HYDROGEN_ACCESSOR | 1990 #undef DECLARE_HYDROGEN_ACCESSOR |
1980 #undef DECLARE_INSTRUCTION | 1991 #undef DECLARE_INSTRUCTION |
1981 #undef DECLARE_CONCRETE_INSTRUCTION | 1992 #undef DECLARE_CONCRETE_INSTRUCTION |
1982 | 1993 |
1983 } } // namespace v8::int | 1994 } } // namespace v8::int |
1984 | 1995 |
1985 #endif // V8_X64_LITHIUM_X64_H_ | 1996 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |