Chromium Code Reviews| 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 parse_info_(handle(function->shared())), | 40 parse_info_(handle(function->shared())), |
| 41 info_(&parse_info_, function), | 41 compile_zone_(function->GetIsolate()->allocator(), ZONE_NAME), |
|
Toon Verwaest
2017/01/26 21:24:47
Is there value to creating separate zones if we ca
rmcilroy
2017/02/07 12:41:53
Changed to only seperate zones when required and r
| |
| 42 info_(&compile_zone_, &parse_info_, function), | |
| 42 graph_(nullptr), | 43 graph_(nullptr), |
| 43 chunk_(nullptr) {} | 44 chunk_(nullptr) {} |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 virtual Status PrepareJobImpl(); | 47 virtual Status PrepareJobImpl(); |
| 47 virtual Status ExecuteJobImpl(); | 48 virtual Status ExecuteJobImpl(); |
| 48 virtual Status FinalizeJobImpl(); | 49 virtual Status FinalizeJobImpl(); |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 ParseInfo parse_info_; | 52 ParseInfo parse_info_; |
| 53 Zone compile_zone_; | |
| 52 CompilationInfo info_; | 54 CompilationInfo info_; |
| 53 HGraph* graph_; | 55 HGraph* graph_; |
| 54 LChunk* chunk_; | 56 LChunk* chunk_; |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 class HBasicBlock final : public ZoneObject { | 59 class HBasicBlock final : public ZoneObject { |
| 58 public: | 60 public: |
| 59 explicit HBasicBlock(HGraph* graph); | 61 explicit HBasicBlock(HGraph* graph); |
| 60 ~HBasicBlock() { } | 62 ~HBasicBlock() { } |
| 61 | 63 |
| (...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2994 } | 2996 } |
| 2995 | 2997 |
| 2996 private: | 2998 private: |
| 2997 HOptimizedGraphBuilder* builder_; | 2999 HOptimizedGraphBuilder* builder_; |
| 2998 }; | 3000 }; |
| 2999 | 3001 |
| 3000 } // namespace internal | 3002 } // namespace internal |
| 3001 } // namespace v8 | 3003 } // namespace v8 |
| 3002 | 3004 |
| 3003 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3005 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
| OLD | NEW |