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

Side by Side Diff: src/compiler/pipeline.h

Issue 1604543002: [compiler] Remove CodeStub from CompilationInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 11 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/linkage.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_PIPELINE_H_ 5 #ifndef V8_COMPILER_PIPELINE_H_
6 #define V8_COMPILER_PIPELINE_H_ 6 #define V8_COMPILER_PIPELINE_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 17 matching lines...) Expand all
28 explicit Pipeline(CompilationInfo* info) : info_(info) {} 28 explicit Pipeline(CompilationInfo* info) : info_(info) {}
29 29
30 // Run the entire pipeline and generate a handle to a code object. 30 // Run the entire pipeline and generate a handle to a code object.
31 Handle<Code> GenerateCode(); 31 Handle<Code> GenerateCode();
32 32
33 // Run the pipeline on a machine graph and generate code. The {schedule} must 33 // Run the pipeline on a machine graph and generate code. The {schedule} must
34 // be valid, hence the given {graph} does not need to be schedulable. 34 // be valid, hence the given {graph} does not need to be schedulable.
35 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, 35 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate,
36 CallDescriptor* call_descriptor, 36 CallDescriptor* call_descriptor,
37 Graph* graph, Schedule* schedule, 37 Graph* graph, Schedule* schedule,
38 Code::Kind kind, 38 Code::Flags flags,
39 const char* debug_name); 39 const char* debug_name);
40 40
41 // Run the pipeline on a machine graph and generate code. If {schedule} is 41 // Run the pipeline on a machine graph and generate code. If {schedule} is
42 // {nullptr}, then compute a new schedule for code generation. 42 // {nullptr}, then compute a new schedule for code generation.
43 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, 43 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info,
44 Graph* graph, 44 Graph* graph,
45 Schedule* schedule = nullptr); 45 Schedule* schedule = nullptr);
46 46
47 // Run just the register allocator phases. 47 // Run just the register allocator phases.
48 static bool AllocateRegistersForTesting(const RegisterConfiguration* config, 48 static bool AllocateRegistersForTesting(const RegisterConfiguration* config,
(...skipping 25 matching lines...) Expand all
74 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor); 74 Handle<Code> ScheduleAndGenerateCode(CallDescriptor* call_descriptor);
75 void AllocateRegisters(const RegisterConfiguration* config, 75 void AllocateRegisters(const RegisterConfiguration* config,
76 CallDescriptor* descriptor, bool run_verifier); 76 CallDescriptor* descriptor, bool run_verifier);
77 }; 77 };
78 78
79 } // namespace compiler 79 } // namespace compiler
80 } // namespace internal 80 } // namespace internal
81 } // namespace v8 81 } // namespace v8
82 82
83 #endif // V8_COMPILER_PIPELINE_H_ 83 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698