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

Side by Side Diff: vm/compiler.cc

Issue 10694053: Fix bailing out of SSA compilation and enable --use-ssa on x64 by default. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: 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
« no previous file with comments | « no previous file | vm/flow_graph_builder.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 #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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 function.ToFullyQualifiedCString(), 261 function.ToFullyQualifiedCString(),
262 function.token_pos()); 262 function.token_pos());
263 } 263 }
264 Parser::ParseFunction(&parsed_function); 264 Parser::ParseFunction(&parsed_function);
265 parsed_function.AllocateVariables(); 265 parsed_function.AllocateVariables();
266 266
267 if (!CompileParsedFunctionHelper(parsed_function, 267 if (!CompileParsedFunctionHelper(parsed_function,
268 optimized, 268 optimized,
269 FLAG_use_ssa)) { 269 FLAG_use_ssa)) {
270 // Compile again using non-ssa code generation. 270 // Compile again using non-ssa code generation.
271 // Re-parse because of side-effects to the AST during compilation.
272 ParsedFunction parsed_function(function);
273 Parser::ParseFunction(&parsed_function);
274 parsed_function.AllocateVariables();
271 CompileParsedFunctionHelper(parsed_function, optimized, false); 275 CompileParsedFunctionHelper(parsed_function, optimized, false);
272 } 276 }
273 277
274 if (FLAG_trace_compiler) { 278 if (FLAG_trace_compiler) {
275 OS::Print("--> '%s' entry: 0x%x\n", 279 OS::Print("--> '%s' entry: 0x%x\n",
276 function.ToFullyQualifiedCString(), 280 function.ToFullyQualifiedCString(),
277 Code::Handle(function.CurrentCode()).EntryPoint()); 281 Code::Handle(function.CurrentCode()).EntryPoint());
278 } 282 }
279 if (Isolate::Current()->debugger()->IsActive()) { 283 if (Isolate::Current()->debugger()->IsActive()) {
280 Isolate::Current()->debugger()->NotifyCompilation(function); 284 Isolate::Current()->debugger()->NotifyCompilation(function);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 isolate->object_store()->clear_sticky_error(); 476 isolate->object_store()->clear_sticky_error();
473 isolate->set_long_jump_base(base); 477 isolate->set_long_jump_base(base);
474 return result.raw(); 478 return result.raw();
475 } 479 }
476 UNREACHABLE(); 480 UNREACHABLE();
477 return Object::null(); 481 return Object::null();
478 } 482 }
479 483
480 484
481 } // namespace dart 485 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698