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

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

Issue 10963027: Use the inner deoptimization frame when setting incoming arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update Created 8 years, 3 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_compiler.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 27 matching lines...) Expand all
38 DEFINE_FLAG(bool, constant_propagation, true, 38 DEFINE_FLAG(bool, constant_propagation, true,
39 "Do conditional constant propagation/unreachable code elimination."); 39 "Do conditional constant propagation/unreachable code elimination.");
40 DEFINE_FLAG(bool, common_subexpression_elimination, true, 40 DEFINE_FLAG(bool, common_subexpression_elimination, true,
41 "Do common subexpression elimination."); 41 "Do common subexpression elimination.");
42 DEFINE_FLAG(bool, loop_invariant_code_motion, true, 42 DEFINE_FLAG(bool, loop_invariant_code_motion, true,
43 "Do loop invariant code motion."); 43 "Do loop invariant code motion.");
44 DEFINE_FLAG(bool, propagate_types, true, "Do static type propagation."); 44 DEFINE_FLAG(bool, propagate_types, true, "Do static type propagation.");
45 DEFINE_FLAG(int, deoptimization_counter_threshold, 5, 45 DEFINE_FLAG(int, deoptimization_counter_threshold, 5,
46 "How many times we allow deoptimization before we disallow" 46 "How many times we allow deoptimization before we disallow"
47 " certain optimizations"); 47 " certain optimizations");
48 DEFINE_FLAG(bool, use_inlining, false, "Enable call-site inlining"); 48 DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining");
49 DECLARE_FLAG(bool, print_flow_graph); 49 DECLARE_FLAG(bool, print_flow_graph);
50 50
51 51
52 // Compile a function. Should call only if the function has not been compiled. 52 // Compile a function. Should call only if the function has not been compiled.
53 // Arg0: function object. 53 // Arg0: function object.
54 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { 54 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
55 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count()); 55 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count());
56 const Function& function = Function::CheckedHandle(arguments.At(0)); 56 const Function& function = Function::CheckedHandle(arguments.At(0));
57 ASSERT(!function.HasCode()); 57 ASSERT(!function.HasCode());
58 const Error& error = Error::Handle(Compiler::CompileFunction(function)); 58 const Error& error = Error::Handle(Compiler::CompileFunction(function));
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 result = isolate->object_store()->sticky_error(); 573 result = isolate->object_store()->sticky_error();
574 isolate->object_store()->clear_sticky_error(); 574 isolate->object_store()->clear_sticky_error();
575 isolate->set_long_jump_base(base); 575 isolate->set_long_jump_base(base);
576 return result.raw(); 576 return result.raw();
577 } 577 }
578 UNREACHABLE(); 578 UNREACHABLE();
579 return Object::null(); 579 return Object::null();
580 } 580 }
581 581
582 } // namespace dart 582 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698