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

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

Issue 1912103002: [wasm] Store function names in the wasm object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-2
Patch Set: fix gcmole and signed/unsigned comparison issue Created 4 years, 8 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 | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/pipeline.cc » ('J')
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/objects.h" 10 #include "src/objects.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class Pipeline { 29 class Pipeline {
30 public: 30 public:
31 explicit Pipeline(CompilationInfo* info) : info_(info), data_(nullptr) {} 31 explicit Pipeline(CompilationInfo* info) : info_(info), data_(nullptr) {}
32 32
33 // Run the entire pipeline and generate a handle to a code object. 33 // Run the entire pipeline and generate a handle to a code object.
34 Handle<Code> GenerateCode(); 34 Handle<Code> GenerateCode();
35 35
36 // Run the pipeline on a machine graph, compute a new schedule and generate 36 // Run the pipeline on a machine graph, compute a new schedule and generate
37 // code. 37 // code.
38 static Handle<Code> GenerateWASMCode(CompilationInfo* info, 38 static Handle<Code> GenerateWASMCode(
39 CallDescriptor* call_descriptor, 39 CompilationInfo* info, CallDescriptor* call_descriptor, Graph* graph,
40 Graph* graph, 40 SourcePositionTable* source_positions,
41 SourcePositionTable* source_positions); 41 Handle<Object> wasm_obj = Handle<Object>(), uint32_t func_index = 0);
titzer 2016/04/22 13:21:07 Let's not have defaults for these last parameters.
Clemens Hammacher 2016/04/22 14:38:40 OK. They were only used from the tests anyway.
42 42
43 // Run the pipeline on a machine graph and generate code. The {schedule} must 43 // Run the pipeline on a machine graph and generate code. The {schedule} must
44 // be valid, hence the given {graph} does not need to be schedulable. 44 // be valid, hence the given {graph} does not need to be schedulable.
45 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, 45 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate,
46 CallDescriptor* call_descriptor, 46 CallDescriptor* call_descriptor,
47 Graph* graph, Schedule* schedule, 47 Graph* graph, Schedule* schedule,
48 Code::Flags flags, 48 Code::Flags flags,
49 const char* debug_name); 49 const char* debug_name);
50 50
51 // Run the pipeline on a machine graph and generate code. If {schedule} is 51 // Run the pipeline on a machine graph and generate code. If {schedule} is
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PipelineData* data_; 91 PipelineData* data_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(Pipeline); 93 DISALLOW_COPY_AND_ASSIGN(Pipeline);
94 }; 94 };
95 95
96 } // namespace compiler 96 } // namespace compiler
97 } // namespace internal 97 } // namespace internal
98 } // namespace v8 98 } // namespace v8
99 99
100 #endif // V8_COMPILER_PIPELINE_H_ 100 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698