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

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

Issue 10832214: Move deopt reason into PcDescriptor so the EAX/RAX register is not destroyed. Some cleanups in PC d… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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 (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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Returns true if there is a next block after the current one in 171 // Returns true if there is a next block after the current one in
172 // the block order and if it is the given block. 172 // the block order and if it is the given block.
173 bool IsNextBlock(BlockEntryInstr* block_entry) const; 173 bool IsNextBlock(BlockEntryInstr* block_entry) const;
174 174
175 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset); 175 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset);
176 void AddCurrentDescriptor(PcDescriptors::Kind kind, 176 void AddCurrentDescriptor(PcDescriptors::Kind kind,
177 intptr_t deopt_id, 177 intptr_t deopt_id,
178 intptr_t token_pos, 178 intptr_t token_pos,
179 intptr_t try_index); 179 intptr_t try_index);
180 Label* AddDeoptStub(intptr_t deopt_id, 180 Label* AddDeoptStub(intptr_t deopt_id,
181 intptr_t deopt_token_pos,
182 intptr_t try_index_, 181 intptr_t try_index_,
183 DeoptReasonId reason, 182 DeoptReasonId reason,
184 Register reg1 = kNoRegister, 183 Register reg1 = kNoRegister,
185 Register reg2 = kNoRegister, 184 Register reg2 = kNoRegister,
186 Register reg3 = kNoRegister); 185 Register reg3 = kNoRegister);
187 186
188 void FinalizeExceptionHandlers(const Code& code); 187 void FinalizeExceptionHandlers(const Code& code);
189 void FinalizePcDescriptors(const Code& code); 188 void FinalizePcDescriptors(const Code& code);
190 void FinalizeDeoptInfo(const Code& code); 189 void FinalizeDeoptInfo(const Code& code);
191 void FinalizeStackmaps(const Code& code); 190 void FinalizeStackmaps(const Code& code);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // that should be used when deoptimizing we store it in this variable. 315 // that should be used when deoptimizing we store it in this variable.
317 // In future AddDeoptStub should be moved out of the instruction template. 316 // In future AddDeoptStub should be moved out of the instruction template.
318 Environment* pending_deoptimization_env_; 317 Environment* pending_deoptimization_env_;
319 318
320 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 319 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
321 }; 320 };
322 321
323 } // namespace dart 322 } // namespace dart
324 323
325 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 324 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698