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 | |
330 private: | 320 private: |
331 SetOncePointer<LEnvironment> environment_; | 321 SetOncePointer<LEnvironment> environment_; |
332 SetOncePointer<LPointerMap> pointer_map_; | 322 SetOncePointer<LPointerMap> pointer_map_; |
333 HValue* hydrogen_value_; | 323 HValue* hydrogen_value_; |
334 SetOncePointer<LEnvironment> deoptimization_environment_; | |
335 }; | 324 }; |
336 | 325 |
337 | 326 |
338 template<typename ElementType, int NumElements> | 327 template<typename ElementType, int NumElements> |
339 class OperandContainer { | 328 class OperandContainer { |
340 public: | 329 public: |
341 OperandContainer() { | 330 OperandContainer() { |
342 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; | 331 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; |
343 } | 332 } |
344 int length() { return NumElements; } | 333 int length() { return NumElements; } |
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1979 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1991 }; | 1980 }; |
1992 | 1981 |
1993 #undef DECLARE_HYDROGEN_ACCESSOR | 1982 #undef DECLARE_HYDROGEN_ACCESSOR |
1994 #undef DECLARE_INSTRUCTION | 1983 #undef DECLARE_INSTRUCTION |
1995 #undef DECLARE_CONCRETE_INSTRUCTION | 1984 #undef DECLARE_CONCRETE_INSTRUCTION |
1996 | 1985 |
1997 } } // namespace v8::int | 1986 } } // namespace v8::int |
1998 | 1987 |
1999 #endif // V8_X64_LITHIUM_X64_H_ | 1988 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |