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

Side by Side Diff: runtime/vm/compiler.cc

Issue 10014006: Try/catch in graph builder. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | runtime/vm/flow_graph_builder.h » ('J')
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 #include "vm/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 OS::Print("Pointer offsets for function: {\n"); 257 OS::Print("Pointer offsets for function: {\n");
258 for (intptr_t i = 0; i < code.pointer_offsets_length(); i++) { 258 for (intptr_t i = 0; i < code.pointer_offsets_length(); i++) {
259 const uword addr = code.GetPointerOffsetAt(i) + code.EntryPoint(); 259 const uword addr = code.GetPointerOffsetAt(i) + code.EntryPoint();
260 Object& obj = Object::Handle(); 260 Object& obj = Object::Handle();
261 obj = *reinterpret_cast<RawObject**>(addr); 261 obj = *reinterpret_cast<RawObject**>(addr);
262 OS::Print(" %d : 0x%x '%s'\n", 262 OS::Print(" %d : 0x%x '%s'\n",
263 code.GetPointerOffsetAt(i), addr, obj.ToCString()); 263 code.GetPointerOffsetAt(i), addr, obj.ToCString());
264 } 264 }
265 OS::Print("}\n"); 265 OS::Print("}\n");
266 OS::Print("PC Descriptors for function '%s' {\n", function_fullname); 266 OS::Print("PC Descriptors for function '%s' {\n", function_fullname);
267 OS::Print("(pc, kind, id, try-index, token-index)\n"); 267 OS::Print("(pc\t\tkind\tid\ttry-ix\ttoken-index)\n");
268 const PcDescriptors& descriptors = 268 const PcDescriptors& descriptors =
269 PcDescriptors::Handle(code.pc_descriptors()); 269 PcDescriptors::Handle(code.pc_descriptors());
270 OS::Print("%s", descriptors.ToCString()); 270 OS::Print("%s", descriptors.ToCString());
271 OS::Print("}\n"); 271 OS::Print("}\n");
272 OS::Print("Variable Descriptors for function '%s' {\n", 272 OS::Print("Variable Descriptors for function '%s' {\n",
273 function_fullname); 273 function_fullname);
274 const LocalVarDescriptors& var_descriptors = 274 const LocalVarDescriptors& var_descriptors =
275 LocalVarDescriptors::Handle(code.var_descriptors()); 275 LocalVarDescriptors::Handle(code.var_descriptors());
276 intptr_t var_desc_length = 276 intptr_t var_desc_length =
277 var_descriptors.IsNull() ? 0 : var_descriptors.Length(); 277 var_descriptors.IsNull() ? 0 : var_descriptors.Length();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } else { 384 } else {
385 result = isolate->object_store()->sticky_error(); 385 result = isolate->object_store()->sticky_error();
386 isolate->object_store()->clear_sticky_error(); 386 isolate->object_store()->clear_sticky_error();
387 } 387 }
388 isolate->set_long_jump_base(base); 388 isolate->set_long_jump_base(base);
389 return result.raw(); 389 return result.raw();
390 } 390 }
391 391
392 392
393 } // namespace dart 393 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | runtime/vm/flow_graph_builder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698