OLD | NEW |
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 HEnvironment* start_environment() const { return start_environment_; } | 277 HEnvironment* start_environment() const { return start_environment_; } |
278 | 278 |
279 void FinalizeUniqueValueIds(); | 279 void FinalizeUniqueValueIds(); |
280 void InitializeInferredTypes(); | 280 void InitializeInferredTypes(); |
281 void InsertTypeConversions(); | 281 void InsertTypeConversions(); |
282 void MergeRemovableSimulates(); | 282 void MergeRemovableSimulates(); |
283 void InsertRepresentationChanges(); | 283 void InsertRepresentationChanges(); |
284 void MarkDeoptimizeOnUndefined(); | 284 void MarkDeoptimizeOnUndefined(); |
285 void ComputeMinusZeroChecks(); | 285 void ComputeMinusZeroChecks(); |
286 void ComputeSafeUint32Operations(); | 286 void ComputeSafeUint32Operations(); |
287 void GlobalValueNumbering(); | |
288 bool ProcessArgumentsObject(); | 287 bool ProcessArgumentsObject(); |
289 void EliminateRedundantPhis(); | 288 void EliminateRedundantPhis(); |
290 void Canonicalize(); | 289 void Canonicalize(); |
291 void OrderBlocks(); | 290 void OrderBlocks(); |
292 void AssignDominators(); | 291 void AssignDominators(); |
293 void SetupInformativeDefinitions(); | 292 void SetupInformativeDefinitions(); |
294 void EliminateRedundantBoundsChecks(); | 293 void EliminateRedundantBoundsChecks(); |
295 void DehoistSimpleArrayIndexComputations(); | 294 void DehoistSimpleArrayIndexComputations(); |
296 void RestoreActualValues(); | 295 void RestoreActualValues(); |
297 void DeadCodeElimination(const char *phase_name); | 296 void DeadCodeElimination(const char *phase_name); |
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1955 }; | 1954 }; |
1956 | 1955 |
1957 | 1956 |
1958 class HPhase : public CompilationPhase { | 1957 class HPhase : public CompilationPhase { |
1959 public: | 1958 public: |
1960 HPhase(const char* name, HGraph* graph) | 1959 HPhase(const char* name, HGraph* graph) |
1961 : CompilationPhase(name, graph->info()), | 1960 : CompilationPhase(name, graph->info()), |
1962 graph_(graph) { } | 1961 graph_(graph) { } |
1963 ~HPhase(); | 1962 ~HPhase(); |
1964 | 1963 |
| 1964 protected: |
| 1965 HGraph* graph() const { return graph_; } |
| 1966 |
1965 private: | 1967 private: |
1966 HGraph* graph_; | 1968 HGraph* graph_; |
1967 | 1969 |
1968 DISALLOW_COPY_AND_ASSIGN(HPhase); | 1970 DISALLOW_COPY_AND_ASSIGN(HPhase); |
1969 }; | 1971 }; |
1970 | 1972 |
1971 | 1973 |
1972 class HTracer: public Malloced { | 1974 class HTracer: public Malloced { |
1973 public: | 1975 public: |
1974 explicit HTracer(int isolate_id) | 1976 explicit HTracer(int isolate_id) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2047 EmbeddedVector<char, 64> filename_; | 2049 EmbeddedVector<char, 64> filename_; |
2048 HeapStringAllocator string_allocator_; | 2050 HeapStringAllocator string_allocator_; |
2049 StringStream trace_; | 2051 StringStream trace_; |
2050 int indent_; | 2052 int indent_; |
2051 }; | 2053 }; |
2052 | 2054 |
2053 | 2055 |
2054 } } // namespace v8::internal | 2056 } } // namespace v8::internal |
2055 | 2057 |
2056 #endif // V8_HYDROGEN_H_ | 2058 #endif // V8_HYDROGEN_H_ |
OLD | NEW |