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

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

Issue 10886015: Eliminate try-index for deopt stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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_ia32.h ('k') | runtime/vm/intermediate_language_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_X64_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ 6 #define VM_FLOW_GRAPH_COMPILER_X64_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_x64.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h.
10 #endif 10 #endif
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool IsNextBlock(BlockEntryInstr* block_entry) const; 177 bool IsNextBlock(BlockEntryInstr* block_entry) const;
178 178
179 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset); 179 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset);
180 void AddCurrentDescriptor(PcDescriptors::Kind kind, 180 void AddCurrentDescriptor(PcDescriptors::Kind kind,
181 intptr_t deopt_id, 181 intptr_t deopt_id,
182 intptr_t token_pos, 182 intptr_t token_pos,
183 intptr_t try_index); 183 intptr_t try_index);
184 184
185 void RecordSafepoint(LocationSummary* locs); 185 void RecordSafepoint(LocationSummary* locs);
186 186
187 Label* AddDeoptStub(intptr_t deopt_id, 187 Label* AddDeoptStub(intptr_t deopt_id, DeoptReasonId reason);
188 intptr_t try_index_,
189 DeoptReasonId reason);
190 188
191 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos); 189 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos);
192 190
193 void AddSlowPathCode(SlowPathCode* slow_path); 191 void AddSlowPathCode(SlowPathCode* slow_path);
194 192
195 void FinalizeExceptionHandlers(const Code& code); 193 void FinalizeExceptionHandlers(const Code& code);
196 void FinalizePcDescriptors(const Code& code); 194 void FinalizePcDescriptors(const Code& code);
197 void FinalizeDeoptInfo(const Code& code); 195 void FinalizeDeoptInfo(const Code& code);
198 void FinalizeStackmaps(const Code& code); 196 void FinalizeStackmaps(const Code& code);
199 void FinalizeVarDescriptors(const Code& code); 197 void FinalizeVarDescriptors(const Code& code);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // that should be used when deoptimizing we store it in this variable. 324 // that should be used when deoptimizing we store it in this variable.
327 // In future AddDeoptStub should be moved out of the instruction template. 325 // In future AddDeoptStub should be moved out of the instruction template.
328 Environment* pending_deoptimization_env_; 326 Environment* pending_deoptimization_env_;
329 327
330 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 328 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
331 }; 329 };
332 330
333 } // namespace dart 331 } // namespace dart
334 332
335 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 333 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698