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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 313 |
314 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } | 314 void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); } |
315 LPointerMap* pointer_map() const { return pointer_map_.get(); } | 315 LPointerMap* pointer_map() const { return pointer_map_.get(); } |
316 bool HasPointerMap() const { return pointer_map_.is_set(); } | 316 bool HasPointerMap() const { return pointer_map_.is_set(); } |
317 | 317 |
318 virtual bool HasResult() const = 0; | 318 virtual bool HasResult() const = 0; |
319 | 319 |
320 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } | 320 void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; } |
321 HValue* hydrogen_value() const { return hydrogen_value_; } | 321 HValue* hydrogen_value() const { return hydrogen_value_; } |
322 | 322 |
323 void set_deoptimization_environment(LEnvironment* env) { | |
324 deoptimization_environment_.set(env); | |
325 } | |
326 LEnvironment* deoptimization_environment() const { | |
327 return deoptimization_environment_.get(); | |
328 } | |
329 bool HasDeoptimizationEnvironment() const { | |
330 return deoptimization_environment_.is_set(); | |
331 } | |
332 | |
333 private: | 323 private: |
334 SetOncePointer<LEnvironment> environment_; | 324 SetOncePointer<LEnvironment> environment_; |
335 SetOncePointer<LPointerMap> pointer_map_; | 325 SetOncePointer<LPointerMap> pointer_map_; |
336 HValue* hydrogen_value_; | 326 HValue* hydrogen_value_; |
337 SetOncePointer<LEnvironment> deoptimization_environment_; | |
338 }; | 327 }; |
339 | 328 |
340 | 329 |
341 template<typename ElementType, int NumElements> | 330 template<typename ElementType, int NumElements> |
342 class OperandContainer { | 331 class OperandContainer { |
343 public: | 332 public: |
344 OperandContainer() { | 333 OperandContainer() { |
345 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; | 334 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; |
346 } | 335 } |
347 int length() { return NumElements; } | 336 int length() { return NumElements; } |
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 | 1945 |
1957 // By default we assume that instruction sequences generated for calls | 1946 // By default we assume that instruction sequences generated for calls |
1958 // cannot deoptimize eagerly and we do not attach environment to this | 1947 // cannot deoptimize eagerly and we do not attach environment to this |
1959 // instruction. | 1948 // instruction. |
1960 LInstruction* MarkAsCall( | 1949 LInstruction* MarkAsCall( |
1961 LInstruction* instr, | 1950 LInstruction* instr, |
1962 HInstruction* hinstr, | 1951 HInstruction* hinstr, |
1963 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); | 1952 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); |
1964 LInstruction* MarkAsSaveDoubles(LInstruction* instr); | 1953 LInstruction* MarkAsSaveDoubles(LInstruction* instr); |
1965 | 1954 |
1966 LInstruction* SetInstructionPendingDeoptimizationEnvironment( | |
1967 LInstruction* instr, int ast_id); | |
1968 void ClearInstructionPendingDeoptimizationEnvironment(); | |
1969 | |
1970 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); | 1955 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); |
1971 | 1956 |
1972 void VisitInstruction(HInstruction* current); | 1957 void VisitInstruction(HInstruction* current); |
1973 | 1958 |
1974 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 1959 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
1975 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); | 1960 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); |
1976 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 1961 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
1977 LInstruction* DoArithmeticD(Token::Value op, | 1962 LInstruction* DoArithmeticD(Token::Value op, |
1978 HArithmeticBinaryOperation* instr); | 1963 HArithmeticBinaryOperation* instr); |
1979 LInstruction* DoArithmeticT(Token::Value op, | 1964 LInstruction* DoArithmeticT(Token::Value op, |
(...skipping 14 matching lines...) Expand all Loading... |
1994 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1979 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1995 }; | 1980 }; |
1996 | 1981 |
1997 #undef DECLARE_HYDROGEN_ACCESSOR | 1982 #undef DECLARE_HYDROGEN_ACCESSOR |
1998 #undef DECLARE_INSTRUCTION | 1983 #undef DECLARE_INSTRUCTION |
1999 #undef DECLARE_CONCRETE_INSTRUCTION | 1984 #undef DECLARE_CONCRETE_INSTRUCTION |
2000 | 1985 |
2001 } } // namespace v8::internal | 1986 } } // namespace v8::internal |
2002 | 1987 |
2003 #endif // V8_ARM_LITHIUM_ARM_H_ | 1988 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |