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 20 matching lines...) Expand all Loading... |
31 class HTracer; | 31 class HTracer; |
32 class LAllocator; | 32 class LAllocator; |
33 class LChunk; | 33 class LChunk; |
34 class LiveRange; | 34 class LiveRange; |
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_, handle(function->shared())), |
42 info_(&parse_info_, function), | 42 info_(&parse_info_, function), |
43 graph_(nullptr), | 43 graph_(nullptr), |
44 chunk_(nullptr) {} | 44 chunk_(nullptr) {} |
45 | 45 |
46 protected: | 46 protected: |
47 virtual Status PrepareJobImpl(); | 47 virtual Status PrepareJobImpl(); |
48 virtual Status ExecuteJobImpl(); | 48 virtual Status ExecuteJobImpl(); |
49 virtual Status FinalizeJobImpl(); | 49 virtual Status FinalizeJobImpl(); |
50 | 50 |
51 private: | 51 private: |
(...skipping 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3037 } | 3037 } |
3038 | 3038 |
3039 private: | 3039 private: |
3040 HOptimizedGraphBuilder* builder_; | 3040 HOptimizedGraphBuilder* builder_; |
3041 }; | 3041 }; |
3042 | 3042 |
3043 } // namespace internal | 3043 } // namespace internal |
3044 } // namespace v8 | 3044 } // namespace v8 |
3045 | 3045 |
3046 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3046 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |