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

Side by Side Diff: src/hydrogen.h

Issue 19150002: Turn propagate deoptimizing mark into a proper HPhase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove side-effect from comparison Created 7 years, 5 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/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 HBasicBlock* entry_block() const { return entry_block_; } 297 HBasicBlock* entry_block() const { return entry_block_; }
298 HEnvironment* start_environment() const { return start_environment_; } 298 HEnvironment* start_environment() const { return start_environment_; }
299 299
300 void FinalizeUniqueValueIds(); 300 void FinalizeUniqueValueIds();
301 void MarkDeoptimizeOnUndefined(); 301 void MarkDeoptimizeOnUndefined();
302 bool ProcessArgumentsObject(); 302 bool ProcessArgumentsObject();
303 void OrderBlocks(); 303 void OrderBlocks();
304 void AssignDominators(); 304 void AssignDominators();
305 void SetupInformativeDefinitions(); 305 void SetupInformativeDefinitions();
306 void RestoreActualValues(); 306 void RestoreActualValues();
307 void PropagateDeoptimizingMark();
308 307
309 // Returns false if there are phi-uses of the arguments-object 308 // Returns false if there are phi-uses of the arguments-object
310 // which are not supported by the optimizing compiler. 309 // which are not supported by the optimizing compiler.
311 bool CheckArgumentsPhiUses(); 310 bool CheckArgumentsPhiUses();
312 311
313 // Returns false if there are phi-uses of an uninitialized const 312 // Returns false if there are phi-uses of an uninitialized const
314 // which are not supported by the optimizing compiler. 313 // which are not supported by the optimizing compiler.
315 bool CheckConstPhiUses(); 314 bool CheckConstPhiUses();
316 315
317 void CollectPhis(); 316 void CollectPhis();
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 private: 439 private:
441 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, 440 HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
442 int32_t integer_value); 441 int32_t integer_value);
443 442
444 template<class Phase> 443 template<class Phase>
445 void Run() { 444 void Run() {
446 Phase phase(this); 445 Phase phase(this);
447 phase.Run(); 446 phase.Run();
448 } 447 }
449 448
450 void MarkAsDeoptimizingRecursively(HBasicBlock* block);
451 void NullifyUnreachableInstructions();
452 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); 449 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi);
453 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); 450 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor);
454 void SetupInformativeDefinitionsInBlock(HBasicBlock* block); 451 void SetupInformativeDefinitionsInBlock(HBasicBlock* block);
455 void SetupInformativeDefinitionsRecursively(HBasicBlock* block); 452 void SetupInformativeDefinitionsRecursively(HBasicBlock* block);
456 453
457 Isolate* isolate_; 454 Isolate* isolate_;
458 int next_block_id_; 455 int next_block_id_;
459 HBasicBlock* entry_block_; 456 HBasicBlock* entry_block_;
460 HEnvironment* start_environment_; 457 HEnvironment* start_environment_;
461 ZoneList<HBasicBlock*> blocks_; 458 ZoneList<HBasicBlock*> blocks_;
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 EmbeddedVector<char, 64> filename_; 2096 EmbeddedVector<char, 64> filename_;
2100 HeapStringAllocator string_allocator_; 2097 HeapStringAllocator string_allocator_;
2101 StringStream trace_; 2098 StringStream trace_;
2102 int indent_; 2099 int indent_;
2103 }; 2100 };
2104 2101
2105 2102
2106 } } // namespace v8::internal 2103 } } // namespace v8::internal
2107 2104
2108 #endif // V8_HYDROGEN_H_ 2105 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698