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

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

Issue 10735071: Introduce Goto instructions to the flow graph. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rewrite a comment that was word salad. Created 8 years, 5 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 Label* done, // Can be NULL, which means fallthrough. 143 Label* done, // Can be NULL, which means fallthrough.
144 intptr_t cid, 144 intptr_t cid,
145 intptr_t token_index, 145 intptr_t token_index,
146 intptr_t try_index); 146 intptr_t try_index);
147 147
148 intptr_t StackSize() const; 148 intptr_t StackSize() const;
149 149
150 // Returns assembler label associated with the given block entry. 150 // Returns assembler label associated with the given block entry.
151 Label* GetBlockLabel(BlockEntryInstr* block_entry) const; 151 Label* GetBlockLabel(BlockEntryInstr* block_entry) const;
152 152
153 // Returns true if the next block after current in the current block order 153 // Returns true if there is a next block after the current one in
154 // is the given block. 154 // the block order and if it is the given block.
155 bool IsNextBlock(TargetEntryInstr* block_entry) const; 155 bool IsNextBlock(BlockEntryInstr* block_entry) const;
156 156
157 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset); 157 void AddExceptionHandler(intptr_t try_index, intptr_t pc_offset);
158 void AddCurrentDescriptor(PcDescriptors::Kind kind, 158 void AddCurrentDescriptor(PcDescriptors::Kind kind,
159 intptr_t cid, 159 intptr_t cid,
160 intptr_t token_pos, 160 intptr_t token_pos,
161 intptr_t try_index); 161 intptr_t try_index);
162 Label* AddDeoptStub(intptr_t deopt_id, 162 Label* AddDeoptStub(intptr_t deopt_id,
163 intptr_t deopt_token_pos, 163 intptr_t deopt_token_pos,
164 intptr_t try_index_, 164 intptr_t try_index_,
165 DeoptReasonId reason, 165 DeoptReasonId reason,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // that should be used when deoptimizing we store it in this variable. 298 // that should be used when deoptimizing we store it in this variable.
299 // In future AddDeoptStub should be moved out of the instruction template. 299 // In future AddDeoptStub should be moved out of the instruction template.
300 Environment* pending_deoptimization_env_; 300 Environment* pending_deoptimization_env_;
301 301
302 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 302 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
303 }; 303 };
304 304
305 } // namespace dart 305 } // namespace dart
306 306
307 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 307 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698