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

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

Issue 2570213002: [stubs] Enable machine graph verification for CodeStubAssembler and friends by default in debug mode (Closed)
Patch Set: Created 4 years 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 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/globals.h" 10 #include "src/globals.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SourcePositionTable* source_positions, 42 SourcePositionTable* source_positions,
43 ZoneVector<trap_handler::ProtectedInstructionData>* 43 ZoneVector<trap_handler::ProtectedInstructionData>*
44 protected_instructions); 44 protected_instructions);
45 45
46 // Run the pipeline on a machine graph and generate code. The {schedule} must 46 // Run the pipeline on a machine graph and generate code. The {schedule} must
47 // be valid, hence the given {graph} does not need to be schedulable. 47 // be valid, hence the given {graph} does not need to be schedulable.
48 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate, 48 static Handle<Code> GenerateCodeForCodeStub(Isolate* isolate,
49 CallDescriptor* call_descriptor, 49 CallDescriptor* call_descriptor,
50 Graph* graph, Schedule* schedule, 50 Graph* graph, Schedule* schedule,
51 Code::Flags flags, 51 Code::Flags flags,
52 const char* debug_name, 52 const char* debug_name);
53 bool verify_graph);
54 53
55 // Run the entire pipeline and generate a handle to a code object suitable for 54 // Run the entire pipeline and generate a handle to a code object suitable for
56 // testing. 55 // testing.
57 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info); 56 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info);
58 57
59 // Run the pipeline on a machine graph and generate code. If {schedule} is 58 // Run the pipeline on a machine graph and generate code. If {schedule} is
60 // {nullptr}, then compute a new schedule for code generation. 59 // {nullptr}, then compute a new schedule for code generation.
61 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, 60 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info,
62 Graph* graph, 61 Graph* graph,
63 Schedule* schedule = nullptr); 62 Schedule* schedule = nullptr);
(...skipping 12 matching lines...) Expand all
76 75
77 private: 76 private:
78 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline); 77 DISALLOW_IMPLICIT_CONSTRUCTORS(Pipeline);
79 }; 78 };
80 79
81 } // namespace compiler 80 } // namespace compiler
82 } // namespace internal 81 } // namespace internal
83 } // namespace v8 82 } // namespace v8
84 83
85 #endif // V8_COMPILER_PIPELINE_H_ 84 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698