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

Side by Side Diff: src/hydrogen.h

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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/globals.h ('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 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 Isolate* isolate() const { return isolate_; } 309 Isolate* isolate() const { return isolate_; }
310 Zone* zone() const { return zone_; } 310 Zone* zone() const { return zone_; }
311 CompilationInfo* info() const { return info_; } 311 CompilationInfo* info() const { return info_; }
312 312
313 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } 313 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; }
314 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } 314 const ZoneList<HPhi*>* phi_list() const { return phi_list_; }
315 HBasicBlock* entry_block() const { return entry_block_; } 315 HBasicBlock* entry_block() const { return entry_block_; }
316 HEnvironment* start_environment() const { return start_environment_; } 316 HEnvironment* start_environment() const { return start_environment_; }
317 317
318 void FinalizeUniqueValueIds(); 318 void FinalizeUniqueValueIds();
319 void MarkDeoptimizeOnUndefined();
319 bool ProcessArgumentsObject(); 320 bool ProcessArgumentsObject();
320 void OrderBlocks(); 321 void OrderBlocks();
321 void AssignDominators(); 322 void AssignDominators();
322 void SetupInformativeDefinitions(); 323 void SetupInformativeDefinitions();
323 void RestoreActualValues(); 324 void RestoreActualValues();
324 325
325 // Returns false if there are phi-uses of the arguments-object 326 // Returns false if there are phi-uses of the arguments-object
326 // which are not supported by the optimizing compiler. 327 // which are not supported by the optimizing compiler.
327 bool CheckArgumentsPhiUses(); 328 bool CheckArgumentsPhiUses();
328 329
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 private: 457 private:
457 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, 458 HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
458 int32_t integer_value); 459 int32_t integer_value);
459 460
460 template<class Phase> 461 template<class Phase>
461 void Run() { 462 void Run() {
462 Phase phase(this); 463 Phase phase(this);
463 phase.Run(); 464 phase.Run();
464 } 465 }
465 466
467 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi);
466 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); 468 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor);
467 void SetupInformativeDefinitionsInBlock(HBasicBlock* block); 469 void SetupInformativeDefinitionsInBlock(HBasicBlock* block);
468 void SetupInformativeDefinitionsRecursively(HBasicBlock* block); 470 void SetupInformativeDefinitionsRecursively(HBasicBlock* block);
469 void EliminateRedundantBoundsChecksUsingInductionVariables(); 471 void EliminateRedundantBoundsChecksUsingInductionVariables();
470 472
471 Isolate* isolate_; 473 Isolate* isolate_;
472 int next_block_id_; 474 int next_block_id_;
473 HBasicBlock* entry_block_; 475 HBasicBlock* entry_block_;
474 HEnvironment* start_environment_; 476 HEnvironment* start_environment_;
475 ZoneList<HBasicBlock*> blocks_; 477 ZoneList<HBasicBlock*> blocks_;
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1126 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1125 1127
1126 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); 1128 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context);
1127 1129
1128 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1130 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1129 1131
1130 void PushAndAdd(HInstruction* instr); 1132 void PushAndAdd(HInstruction* instr);
1131 1133
1132 void FinishExitWithHardDeoptimization(HBasicBlock* continuation); 1134 void FinishExitWithHardDeoptimization(HBasicBlock* continuation);
1133 1135
1134 void AddIncrementCounter(StatsCounter* counter,
1135 HValue* context);
1136
1137 class IfBuilder { 1136 class IfBuilder {
1138 public: 1137 public:
1139 explicit IfBuilder(HGraphBuilder* builder, 1138 explicit IfBuilder(HGraphBuilder* builder,
1140 int position = RelocInfo::kNoPosition); 1139 int position = RelocInfo::kNoPosition);
1141 IfBuilder(HGraphBuilder* builder, 1140 IfBuilder(HGraphBuilder* builder,
1142 HIfContinuation* continuation); 1141 HIfContinuation* continuation);
1143 1142
1144 ~IfBuilder() { 1143 ~IfBuilder() {
1145 if (!finished_) End(); 1144 if (!finished_) End();
1146 } 1145 }
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 EmbeddedVector<char, 64> filename_; 2163 EmbeddedVector<char, 64> filename_;
2165 HeapStringAllocator string_allocator_; 2164 HeapStringAllocator string_allocator_;
2166 StringStream trace_; 2165 StringStream trace_;
2167 int indent_; 2166 int indent_;
2168 }; 2167 };
2169 2168
2170 2169
2171 } } // namespace v8::internal 2170 } } // namespace v8::internal
2172 2171
2173 #endif // V8_HYDROGEN_H_ 2172 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698