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

Side by Side Diff: src/crankshaft/compilation-phase.h

Issue 1758773002: [crankshaft] Move CompilationPhase into separate file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-api-2
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/compiler.cc ('k') | src/crankshaft/compilation-phase.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_CRANKSHAFT_COMPILATION_PHASE_H_
6 #define V8_CRANKSHAFT_COMPILATION_PHASE_H_
7
8 #include "src/allocation.h"
9 #include "src/compiler.h"
10 #include "src/zone.h"
11
12 namespace v8 {
13 namespace internal {
14
15 class CompilationPhase BASE_EMBEDDED {
16 public:
17 CompilationPhase(const char* name, CompilationInfo* info);
18 ~CompilationPhase();
19
20 protected:
21 bool ShouldProduceTraceOutput() const;
22
23 const char* name() const { return name_; }
24 CompilationInfo* info() const { return info_; }
25 Isolate* isolate() const { return info()->isolate(); }
26 Zone* zone() { return &zone_; }
27
28 private:
29 const char* name_;
30 CompilationInfo* info_;
31 Zone zone_;
32 size_t info_zone_start_allocation_size_;
33 base::ElapsedTimer timer_;
34
35 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
36 };
37
38 } // namespace internal
39 } // namespace v8
40
41 #endif // V8_CRANKSHAFT_COMPILATION_PHASE_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/crankshaft/compilation-phase.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698