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

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

Issue 9523001: Teach the flow graph compiler to play nice with the debugger (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
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 "vm/flags.h" 7 #include "vm/flags.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/longjump.h" 9 #include "vm/longjump.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const AbstractType& type = 167 const AbstractType& type =
168 AbstractType::ZoneHandle( 168 AbstractType::ZoneHandle(
169 owner()->parsed_function().function().result_type()); 169 owner()->parsed_function().function().result_type());
170 AssertAssignableComp* assert = 170 AssertAssignableComp* assert =
171 new AssertAssignableComp(return_value, type); 171 new AssertAssignableComp(return_value, type);
172 AddInstruction(new BindInstr(temp_index(), assert)); 172 AddInstruction(new BindInstr(temp_index(), assert));
173 return_value = new TempVal(temp_index()); 173 return_value = new TempVal(temp_index());
174 } 174 }
175 } 175 }
176 176
177 AddInstruction(new ReturnInstr(return_value)); 177 AddInstruction(new ReturnInstr(return_value, node->token_index()));
178 CloseFragment(); 178 CloseFragment();
179 } 179 }
180 180
181 void ValueGraphVisitor::VisitReturnNode(ReturnNode* node) { UNREACHABLE(); } 181 void ValueGraphVisitor::VisitReturnNode(ReturnNode* node) { UNREACHABLE(); }
182 void TestGraphVisitor::VisitReturnNode(ReturnNode* node) { UNREACHABLE(); } 182 void TestGraphVisitor::VisitReturnNode(ReturnNode* node) { UNREACHABLE(); }
183 183
184 184
185 // <Expression> ::= Literal { literal: Instance } 185 // <Expression> ::= Literal { literal: Instance }
186 void EffectGraphVisitor::VisitLiteralNode(LiteralNode* node) { 186 void EffectGraphVisitor::VisitLiteralNode(LiteralNode* node) {
187 return; 187 return;
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 char* chars = reinterpret_cast<char*>( 1101 char* chars = reinterpret_cast<char*>(
1102 Isolate::Current()->current_zone()->Allocate(len)); 1102 Isolate::Current()->current_zone()->Allocate(len));
1103 OS::SNPrint(chars, len, kFormat, function_name, reason); 1103 OS::SNPrint(chars, len, kFormat, function_name, reason);
1104 const Error& error = Error::Handle( 1104 const Error& error = Error::Handle(
1105 LanguageError::New(String::Handle(String::New(chars)))); 1105 LanguageError::New(String::Handle(String::New(chars))));
1106 Isolate::Current()->long_jump_base()->Jump(1, error); 1106 Isolate::Current()->long_jump_base()->Jump(1, error);
1107 } 1107 }
1108 1108
1109 1109
1110 } // namespace dart 1110 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_x64.cc » ('j') | runtime/vm/flow_graph_compiler_x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698