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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class HOsrBuilder; | 28 class HOsrBuilder; |
29 class HTracer; | 29 class HTracer; |
30 class LAllocator; | 30 class LAllocator; |
31 class LChunk; | 31 class LChunk; |
32 class LiveRange; | 32 class LiveRange; |
33 class Scope; | 33 class Scope; |
34 | 34 |
35 class HCompilationJob final : public CompilationJob { | 35 class HCompilationJob final : public CompilationJob { |
36 public: | 36 public: |
37 explicit HCompilationJob(Handle<JSFunction> function) | 37 explicit HCompilationJob(Handle<JSFunction> function) |
38 : CompilationJob(&info_, "Crankshaft"), | 38 : CompilationJob(function->GetIsolate(), &info_, "Crankshaft"), |
39 zone_(function->GetIsolate()->allocator()), | 39 zone_(function->GetIsolate()->allocator()), |
40 parse_info_(&zone_, function), | 40 parse_info_(&zone_, function), |
41 info_(&parse_info_, function), | 41 info_(&parse_info_, function), |
42 graph_(nullptr), | 42 graph_(nullptr), |
43 chunk_(nullptr) {} | 43 chunk_(nullptr) {} |
44 | 44 |
45 protected: | 45 protected: |
46 virtual Status PrepareJobImpl(); | 46 virtual Status PrepareJobImpl(); |
47 virtual Status ExecuteJobImpl(); | 47 virtual Status ExecuteJobImpl(); |
48 virtual Status FinalizeJobImpl(); | 48 virtual Status FinalizeJobImpl(); |
(...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 } | 3040 } |
3041 | 3041 |
3042 private: | 3042 private: |
3043 HOptimizedGraphBuilder* builder_; | 3043 HOptimizedGraphBuilder* builder_; |
3044 }; | 3044 }; |
3045 | 3045 |
3046 } // namespace internal | 3046 } // namespace internal |
3047 } // namespace v8 | 3047 } // namespace v8 |
3048 | 3048 |
3049 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3049 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |