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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.h

Issue 10453110: Implement optimized unary ops for ia32 as well. Fix a crash in disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 FlowGraphCompiler(Assembler* assembler, 31 FlowGraphCompiler(Assembler* assembler,
32 const ParsedFunction& parsed_function, 32 const ParsedFunction& parsed_function,
33 const GrowableArray<BlockEntryInstr*>& block_order, 33 const GrowableArray<BlockEntryInstr*>& block_order,
34 bool is_optimizing); 34 bool is_optimizing);
35 35
36 virtual ~FlowGraphCompiler(); 36 virtual ~FlowGraphCompiler();
37 37
38 void CompileGraph(); 38 void CompileGraph();
39 39
40 Label* AddDeoptStub(intptr_t deopt_id,
41 intptr_t deopt_token_index,
42 intptr_t try_index_,
43 DeoptReasonId reason,
44 Register reg1,
45 Register reg2);
46
40 // Infrastructure copied from class CodeGenerator or stubbed out. 47 // Infrastructure copied from class CodeGenerator or stubbed out.
41 void FinalizePcDescriptors(const Code& code); 48 void FinalizePcDescriptors(const Code& code);
42 void FinalizeStackmaps(const Code& code); 49 void FinalizeStackmaps(const Code& code);
43 void FinalizeVarDescriptors(const Code& code); 50 void FinalizeVarDescriptors(const Code& code);
44 void FinalizeExceptionHandlers(const Code& code); 51 void FinalizeExceptionHandlers(const Code& code);
45 void FinalizeComments(const Code& code); 52 void FinalizeComments(const Code& code);
46 53
47 Assembler* assembler() const { return assembler_; } 54 Assembler* assembler() const { return assembler_; }
48 bool is_optimizing() const { return is_optimizing_; } 55 bool is_optimizing() const { return is_optimizing_; }
49 const ParsedFunction& parsed_function() const { return parsed_function_; } 56 const ParsedFunction& parsed_function() const { return parsed_function_; }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ExceptionHandlerList* exception_handlers_list_; 129 ExceptionHandlerList* exception_handlers_list_;
123 GrowableArray<DeoptimizationStub*> deopt_stubs_; 130 GrowableArray<DeoptimizationStub*> deopt_stubs_;
124 const bool is_optimizing_; 131 const bool is_optimizing_;
125 132
126 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 133 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
127 }; 134 };
128 135
129 } // namespace dart 136 } // namespace dart
130 137
131 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 138 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698