| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
| 6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
| 7 | 7 |
| 8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/ast/ast-type-bounds.h" | 10 #include "src/ast/ast-type-bounds.h" |
| 11 #include "src/ast/scopes.h" |
| 11 #include "src/bailout-reason.h" | 12 #include "src/bailout-reason.h" |
| 12 #include "src/compilation-info.h" | 13 #include "src/compilation-info.h" |
| 13 #include "src/compiler.h" | 14 #include "src/compiler.h" |
| 14 #include "src/crankshaft/compilation-phase.h" | 15 #include "src/crankshaft/compilation-phase.h" |
| 15 #include "src/crankshaft/hydrogen-instructions.h" | 16 #include "src/crankshaft/hydrogen-instructions.h" |
| 16 #include "src/globals.h" | 17 #include "src/globals.h" |
| 17 #include "src/parsing/parse-info.h" | 18 #include "src/parsing/parse-info.h" |
| 18 #include "src/zone.h" | 19 #include "src/zone.h" |
| 19 | 20 |
| 20 namespace v8 { | 21 namespace v8 { |
| 21 namespace internal { | 22 namespace internal { |
| 22 | 23 |
| 23 // Forward declarations. | 24 // Forward declarations. |
| 24 class BitVector; | 25 class BitVector; |
| 25 class FunctionState; | 26 class FunctionState; |
| 26 class HEnvironment; | 27 class HEnvironment; |
| 27 class HGraph; | 28 class HGraph; |
| 28 class HLoopInformation; | 29 class HLoopInformation; |
| 29 class HOsrBuilder; | 30 class HOsrBuilder; |
| 30 class HTracer; | 31 class HTracer; |
| 31 class LAllocator; | 32 class LAllocator; |
| 32 class LChunk; | 33 class LChunk; |
| 33 class LiveRange; | 34 class LiveRange; |
| 34 class Scope; | |
| 35 | 35 |
| 36 class HCompilationJob final : public CompilationJob { | 36 class HCompilationJob final : public CompilationJob { |
| 37 public: | 37 public: |
| 38 explicit HCompilationJob(Handle<JSFunction> function) | 38 explicit HCompilationJob(Handle<JSFunction> function) |
| 39 : CompilationJob(function->GetIsolate(), &info_, "Crankshaft"), | 39 : CompilationJob(function->GetIsolate(), &info_, "Crankshaft"), |
| 40 zone_(function->GetIsolate()->allocator()), | 40 zone_(function->GetIsolate()->allocator()), |
| 41 parse_info_(&zone_, function), | 41 parse_info_(&zone_, function), |
| 42 info_(&parse_info_, function), | 42 info_(&parse_info_, function), |
| 43 graph_(nullptr), | 43 graph_(nullptr), |
| 44 chunk_(nullptr) {} | 44 chunk_(nullptr) {} |
| (...skipping 2996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3041 } | 3041 } |
| 3042 | 3042 |
| 3043 private: | 3043 private: |
| 3044 HOptimizedGraphBuilder* builder_; | 3044 HOptimizedGraphBuilder* builder_; |
| 3045 }; | 3045 }; |
| 3046 | 3046 |
| 3047 } // namespace internal | 3047 } // namespace internal |
| 3048 } // namespace v8 | 3048 } // namespace v8 |
| 3049 | 3049 |
| 3050 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3050 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
| OLD | NEW |