Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 2645403002: [Compiler] Enable use of seperate zones for parsing and compiling. (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ast/scopes.h"
12 #include "src/bailout-reason.h" 12 #include "src/bailout-reason.h"
13 #include "src/compilation-info.h" 13 #include "src/compilation-info.h"
14 #include "src/compiler.h" 14 #include "src/compiler.h"
15 #include "src/crankshaft/compilation-phase.h" 15 #include "src/crankshaft/compilation-phase.h"
16 #include "src/crankshaft/hydrogen-instructions.h" 16 #include "src/crankshaft/hydrogen-instructions.h"
17 #include "src/globals.h" 17 #include "src/globals.h"
18 #include "src/parsing/parse-info.h" 18 #include "src/parsing/parse-info.h"
19 #include "src/zone/zone.h"
Michael Starzinger 2017/02/09 14:23:30 nit: Isn't this header needed for all the embedded
rmcilroy 2017/02/09 15:03:03 Yes sorry missed this. Done.
20 19
21 namespace v8 { 20 namespace v8 {
22 namespace internal { 21 namespace internal {
23 22
24 // Forward declarations. 23 // Forward declarations.
25 class BitVector; 24 class BitVector;
26 class FunctionState; 25 class FunctionState;
27 class HEnvironment; 26 class HEnvironment;
28 class HGraph; 27 class HGraph;
29 class HLoopInformation; 28 class HLoopInformation;
30 class HOsrBuilder; 29 class HOsrBuilder;
31 class HTracer; 30 class HTracer;
32 class LAllocator; 31 class LAllocator;
33 class LChunk; 32 class LChunk;
34 class LiveRange; 33 class LiveRange;
35 34
36 class HCompilationJob final : public CompilationJob { 35 class HCompilationJob final : public CompilationJob {
37 public: 36 public:
38 explicit HCompilationJob(Handle<JSFunction> function) 37 explicit HCompilationJob(Handle<JSFunction> function)
39 : CompilationJob(function->GetIsolate(), &info_, "Crankshaft"), 38 : CompilationJob(function->GetIsolate(), &info_, "Crankshaft"),
40 parse_info_(handle(function->shared())), 39 parse_info_(handle(function->shared())),
41 info_(&parse_info_, function), 40 info_(parse_info_.zone(), &parse_info_, function),
42 graph_(nullptr), 41 graph_(nullptr),
43 chunk_(nullptr) {} 42 chunk_(nullptr) {}
44 43
45 protected: 44 protected:
46 virtual Status PrepareJobImpl(); 45 virtual Status PrepareJobImpl();
47 virtual Status ExecuteJobImpl(); 46 virtual Status ExecuteJobImpl();
48 virtual Status FinalizeJobImpl(); 47 virtual Status FinalizeJobImpl();
49 48
50 private: 49 private:
51 ParseInfo parse_info_; 50 ParseInfo parse_info_;
(...skipping 2942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 } 2993 }
2995 2994
2996 private: 2995 private:
2997 HOptimizedGraphBuilder* builder_; 2996 HOptimizedGraphBuilder* builder_;
2998 }; 2997 };
2999 2998
3000 } // namespace internal 2999 } // namespace internal
3001 } // namespace v8 3000 } // namespace v8
3002 3001
3003 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3002 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« src/compiler.cc ('K') | « src/compiler/pipeline.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698