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

Side by Side Diff: src/hydrogen.h

Issue 7003109: Merge r8237 to V8 3.3 branch. Fix bug v8:1434, optimized compare of undefined can fail. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: '' Created 9 years, 6 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 Zone* zone() { return isolate_->zone(); } 209 Zone* zone() { return isolate_->zone(); }
210 210
211 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } 211 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; }
212 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } 212 const ZoneList<HPhi*>* phi_list() const { return phi_list_; }
213 HBasicBlock* entry_block() const { return entry_block_; } 213 HBasicBlock* entry_block() const { return entry_block_; }
214 HEnvironment* start_environment() const { return start_environment_; } 214 HEnvironment* start_environment() const { return start_environment_; }
215 215
216 void InitializeInferredTypes(); 216 void InitializeInferredTypes();
217 void InsertTypeConversions(); 217 void InsertTypeConversions();
218 void InsertRepresentationChanges(); 218 void InsertRepresentationChanges();
219 void MarkDeoptimizeOnUndefined();
219 void ComputeMinusZeroChecks(); 220 void ComputeMinusZeroChecks();
220 bool ProcessArgumentsObject(); 221 bool ProcessArgumentsObject();
221 void EliminateRedundantPhis(); 222 void EliminateRedundantPhis();
222 void EliminateUnreachablePhis(); 223 void EliminateUnreachablePhis();
223 void Canonicalize(); 224 void Canonicalize();
224 void OrderBlocks(); 225 void OrderBlocks();
225 void AssignDominators(); 226 void AssignDominators();
226 void ReplaceCheckedValues(); 227 void ReplaceCheckedValues();
227 228
228 // Returns false if there are phi-uses of the arguments-object 229 // Returns false if there are phi-uses of the arguments-object
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 HBasicBlock* loop_header); 273 HBasicBlock* loop_header);
273 void PostorderLoopBlocks(HLoopInformation* loop, 274 void PostorderLoopBlocks(HLoopInformation* loop,
274 BitVector* visited, 275 BitVector* visited,
275 ZoneList<HBasicBlock*>* order, 276 ZoneList<HBasicBlock*>* order,
276 HBasicBlock* loop_header); 277 HBasicBlock* loop_header);
277 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, 278 HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
278 Object* value); 279 Object* value);
279 280
280 void InsertTypeConversions(HInstruction* instr); 281 void InsertTypeConversions(HInstruction* instr);
281 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); 282 void PropagateMinusZeroChecks(HValue* value, BitVector* visited);
283 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi);
282 void InsertRepresentationChangeForUse(HValue* value, 284 void InsertRepresentationChangeForUse(HValue* value,
283 HValue* use_value, 285 HValue* use_value,
284 int use_index, 286 int use_index,
285 Representation to); 287 Representation to);
286 void InsertRepresentationChangesForValue(HValue* value); 288 void InsertRepresentationChangesForValue(HValue* value);
287 void InferTypes(ZoneList<HValue*>* worklist); 289 void InferTypes(ZoneList<HValue*>* worklist);
288 void InitializeInferredTypes(int from_inclusive, int to_inclusive); 290 void InitializeInferredTypes(int from_inclusive, int to_inclusive);
289 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); 291 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor);
290 292
291 Isolate* isolate_; 293 Isolate* isolate_;
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 const char* filename_; 1196 const char* filename_;
1195 HeapStringAllocator string_allocator_; 1197 HeapStringAllocator string_allocator_;
1196 StringStream trace_; 1198 StringStream trace_;
1197 int indent_; 1199 int indent_;
1198 }; 1200 };
1199 1201
1200 1202
1201 } } // namespace v8::internal 1203 } } // namespace v8::internal
1202 1204
1203 #endif // V8_HYDROGEN_H_ 1205 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698