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

Side by Side Diff: dart/runtime/vm/flow_graph_builder.cc

Issue 57813002: Version 0.8.10.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/runtime/vm/class_finalizer.cc ('k') | dart/runtime/vm/object.h » ('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 #include "vm/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after
3567 new CatchBlockEntryInstr(owner()->AllocateBlockId(), 3567 new CatchBlockEntryInstr(owner()->AllocateBlockId(),
3568 catch_handler_index, 3568 catch_handler_index,
3569 catch_block->handler_types(), 3569 catch_block->handler_types(),
3570 try_handler_index, 3570 try_handler_index,
3571 catch_block->exception_var(), 3571 catch_block->exception_var(),
3572 catch_block->stacktrace_var(), 3572 catch_block->stacktrace_var(),
3573 catch_block->needs_stacktrace()); 3573 catch_block->needs_stacktrace());
3574 owner()->AddCatchEntry(catch_entry); 3574 owner()->AddCatchEntry(catch_entry);
3575 ASSERT(!for_catch.is_open()); 3575 ASSERT(!for_catch.is_open());
3576 AppendFragment(catch_entry, for_catch); 3576 AppendFragment(catch_entry, for_catch);
3577 if (node->end_catch_label() != NULL) { 3577
3578 JoinEntryInstr* join = node->end_catch_label()->join_for_continue(); 3578 JoinEntryInstr* join = node->end_catch_label()->join_for_continue();
3579 if (join != NULL) { 3579 if (join != NULL) {
3580 if (is_open()) Goto(join); 3580 if (is_open()) Goto(join);
3581 exit_ = join; 3581 exit_ = join;
3582 }
3583 } 3582 }
3584 3583
3585 if (finally_block != NULL) { 3584 if (finally_block != NULL) {
3586 // Create a handler for the code in the catch block, containing the 3585 // Create a handler for the code in the catch block, containing the
3587 // code in the finally block. 3586 // code in the finally block.
3588 owner()->set_try_index(original_handler_index); 3587 owner()->set_try_index(original_handler_index);
3589 EffectGraphVisitor for_finally(owner(), temp_index()); 3588 EffectGraphVisitor for_finally(owner(), temp_index());
3590 for_finally.BuildRestoreContext(catch_block->context_var()); 3589 for_finally.BuildRestoreContext(catch_block->context_var());
3591 3590
3592 finally_block->Visit(&for_finally); 3591 finally_block->Visit(&for_finally);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
3859 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; 3858 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1;
3860 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); 3859 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
3861 OS::SNPrint(chars, len, kFormat, function_name, reason); 3860 OS::SNPrint(chars, len, kFormat, function_name, reason);
3862 const Error& error = Error::Handle( 3861 const Error& error = Error::Handle(
3863 LanguageError::New(String::Handle(String::New(chars)))); 3862 LanguageError::New(String::Handle(String::New(chars))));
3864 Isolate::Current()->long_jump_base()->Jump(1, error); 3863 Isolate::Current()->long_jump_base()->Jump(1, error);
3865 } 3864 }
3866 3865
3867 3866
3868 } // namespace dart 3867 } // namespace dart
OLDNEW
« no previous file with comments | « dart/runtime/vm/class_finalizer.cc ('k') | dart/runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698