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

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

Issue 9443021: Enable new compiler in x64 mode (bail-out all the time, but we can use automated testing). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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/tests/vm/vm.status ('k') | no next file » | 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_index_table.h" 10 #include "vm/code_index_table.h"
(...skipping 12 matching lines...) Expand all
23 #include "vm/scanner.h" 23 #include "vm/scanner.h"
24 #include "vm/timer.h" 24 #include "vm/timer.h"
25 25
26 namespace dart { 26 namespace dart {
27 27
28 DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code."); 28 DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code.");
29 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); 29 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations.");
30 DEFINE_FLAG(int, deoptimization_counter_threshold, 5, 30 DEFINE_FLAG(int, deoptimization_counter_threshold, 5,
31 "How many times we allow deoptimization before we disallow" 31 "How many times we allow deoptimization before we disallow"
32 " certain optimizations"); 32 " certain optimizations");
33 #if defined(TARGET_ARCH_X64)
34 DEFINE_FLAG(bool, use_new_compiler, true,
35 "Try to use the new compiler backend.");
36 #else
33 DEFINE_FLAG(bool, use_new_compiler, false, 37 DEFINE_FLAG(bool, use_new_compiler, false,
34 "Try to use the new compiler backend."); 38 "Try to use the new compiler backend.");
39 #endif
35 DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from new compiler."); 40 DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from new compiler.");
36 41
37 42
38 // Compile a function. Should call only if the function has not been compiled. 43 // Compile a function. Should call only if the function has not been compiled.
39 // Arg0: function object. 44 // Arg0: function object.
40 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { 45 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
41 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count()); 46 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count());
42 const Function& function = Function::CheckedHandle(arguments.At(0)); 47 const Function& function = Function::CheckedHandle(arguments.At(0));
43 ASSERT(!function.HasCode()); 48 ASSERT(!function.HasCode());
44 const Error& error = Error::Handle(Compiler::CompileFunction(function)); 49 const Error& error = Error::Handle(Compiler::CompileFunction(function));
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 } else { 361 } else {
357 result = isolate->object_store()->sticky_error(); 362 result = isolate->object_store()->sticky_error();
358 isolate->object_store()->clear_sticky_error(); 363 isolate->object_store()->clear_sticky_error();
359 } 364 }
360 isolate->set_long_jump_base(base); 365 isolate->set_long_jump_base(base);
361 return result.raw(); 366 return result.raw();
362 } 367 }
363 368
364 369
365 } // namespace dart 370 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698