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

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

Issue 9562045: Added stack overflow checks at backward branches in order to allow interrupting endless loops. Bett… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/code_generator_ia32.cc ('k') | runtime/vm/code_generator_x64.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_CODE_GENERATOR_X64_H_ 5 #ifndef VM_CODE_GENERATOR_X64_H_
6 #define VM_CODE_GENERATOR_X64_H_ 6 #define VM_CODE_GENERATOR_X64_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_x64.h directly; use code_generator.h. 9 #error Do not include code_generator_x64.h directly; use code_generator.h.
10 #endif 10 #endif
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 void GenerateCall(intptr_t token_index, 206 void GenerateCall(intptr_t token_index,
207 const ExternalLabel* ext_label, 207 const ExternalLabel* ext_label,
208 PcDescriptors::Kind desc_kind); 208 PcDescriptors::Kind desc_kind);
209 void GenerateCallRuntime(intptr_t node_id, 209 void GenerateCallRuntime(intptr_t node_id,
210 intptr_t token_index, 210 intptr_t token_index,
211 const RuntimeEntry& entry); 211 const RuntimeEntry& entry);
212 212
213 void GenerateInlinedFinallyBlocks(SourceLabel* label); 213 void GenerateInlinedFinallyBlocks(SourceLabel* label);
214 214
215 void HandleBackwardBranch(intptr_t loop_id, intptr_t token_index);
216
215 void ErrorMsg(intptr_t token_index, const char* format, ...); 217 void ErrorMsg(intptr_t token_index, const char* format, ...);
216 218
217 int generate_next_try_index() { return try_index_ += 1; } 219 int generate_next_try_index() { return try_index_ += 1; }
218 220
219 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); 221 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index);
220 void AddCurrentDescriptor(PcDescriptors::Kind kind, 222 void AddCurrentDescriptor(PcDescriptors::Kind kind,
221 intptr_t node_id, 223 intptr_t node_id,
222 intptr_t token_index); 224 intptr_t token_index);
223 225
224 Assembler* assembler_; 226 Assembler* assembler_;
225 const ParsedFunction& parsed_function_; 227 const ParsedFunction& parsed_function_;
226 intptr_t locals_space_size_; 228 intptr_t locals_space_size_;
227 CodeGeneratorState* state_; 229 CodeGeneratorState* state_;
228 DescriptorList* pc_descriptors_list_; 230 DescriptorList* pc_descriptors_list_;
229 HandlerList* exception_handlers_list_; 231 HandlerList* exception_handlers_list_;
230 int try_index_; 232 int try_index_;
231 233
232 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 234 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
233 }; 235 };
234 236
235 237
236 } // namespace dart 238 } // namespace dart
237 239
238 #endif // VM_CODE_GENERATOR_X64_H_ 240 #endif // VM_CODE_GENERATOR_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/code_generator_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698