Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: src/arm/lithium-arm.h

Issue 6258020: Revert r6543 and r6441. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
323 private: 333 private:
324 SetOncePointer<LEnvironment> environment_; 334 SetOncePointer<LEnvironment> environment_;
325 SetOncePointer<LPointerMap> pointer_map_; 335 SetOncePointer<LPointerMap> pointer_map_;
326 HValue* hydrogen_value_; 336 HValue* hydrogen_value_;
337 SetOncePointer<LEnvironment> deoptimization_environment_;
327 }; 338 };
328 339
329 340
330 template<typename ElementType, int NumElements> 341 template<typename ElementType, int NumElements>
331 class OperandContainer { 342 class OperandContainer {
332 public: 343 public:
333 OperandContainer() { 344 OperandContainer() {
334 for (int i = 0; i < NumElements; i++) elems_[i] = NULL; 345 for (int i = 0; i < NumElements; i++) elems_[i] = NULL;
335 } 346 }
336 int length() { return NumElements; } 347 int length() { return NumElements; }
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 1956
1946 // By default we assume that instruction sequences generated for calls 1957 // By default we assume that instruction sequences generated for calls
1947 // cannot deoptimize eagerly and we do not attach environment to this 1958 // cannot deoptimize eagerly and we do not attach environment to this
1948 // instruction. 1959 // instruction.
1949 LInstruction* MarkAsCall( 1960 LInstruction* MarkAsCall(
1950 LInstruction* instr, 1961 LInstruction* instr,
1951 HInstruction* hinstr, 1962 HInstruction* hinstr,
1952 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); 1963 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
1953 LInstruction* MarkAsSaveDoubles(LInstruction* instr); 1964 LInstruction* MarkAsSaveDoubles(LInstruction* instr);
1954 1965
1966 LInstruction* SetInstructionPendingDeoptimizationEnvironment(
1967 LInstruction* instr, int ast_id);
1968 void ClearInstructionPendingDeoptimizationEnvironment();
1969
1955 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); 1970 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env);
1956 1971
1957 void VisitInstruction(HInstruction* current); 1972 void VisitInstruction(HInstruction* current);
1958 1973
1959 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); 1974 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
1960 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); 1975 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr);
1961 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); 1976 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
1962 LInstruction* DoArithmeticD(Token::Value op, 1977 LInstruction* DoArithmeticD(Token::Value op,
1963 HArithmeticBinaryOperation* instr); 1978 HArithmeticBinaryOperation* instr);
1964 LInstruction* DoArithmeticT(Token::Value op, 1979 LInstruction* DoArithmeticT(Token::Value op,
(...skipping 14 matching lines...) Expand all
1979 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1994 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1980 }; 1995 };
1981 1996
1982 #undef DECLARE_HYDROGEN_ACCESSOR 1997 #undef DECLARE_HYDROGEN_ACCESSOR
1983 #undef DECLARE_INSTRUCTION 1998 #undef DECLARE_INSTRUCTION
1984 #undef DECLARE_CONCRETE_INSTRUCTION 1999 #undef DECLARE_CONCRETE_INSTRUCTION
1985 2000
1986 } } // namespace v8::internal 2001 } } // namespace v8::internal
1987 2002
1988 #endif // V8_ARM_LITHIUM_ARM_H_ 2003 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698