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

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

Issue 9007027: Add (debug) printing when IC is used in optimized code (must eliminate it). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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"
11 #include "vm/code_patcher.h" 11 #include "vm/code_patcher.h"
12 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
13 #include "vm/disassembler.h" 13 #include "vm/disassembler.h"
14 #include "vm/flags.h" 14 #include "vm/flags.h"
15 #include "vm/object.h" 15 #include "vm/object.h"
16 #include "vm/object_store.h" 16 #include "vm/object_store.h"
17 #include "vm/opt_code_generator.h" 17 #include "vm/opt_code_generator.h"
18 #include "vm/os.h" 18 #include "vm/os.h"
19 #include "vm/parser.h" 19 #include "vm/parser.h"
20 #include "vm/scanner.h" 20 #include "vm/scanner.h"
21 #include "vm/timer.h" 21 #include "vm/timer.h"
22 22
23 namespace dart { 23 namespace dart {
24 24
25 DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code."); 25 DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code.");
26 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); 26 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations.");
27 DEFINE_FLAG(int, deoptimization_counter_threshold, 2, 27 DEFINE_FLAG(int, deoptimization_counter_threshold, 5,
28 "How many times we allow deoptimization before we disallow" 28 "How many times we allow deoptimization before we disallow"
29 " certain optimizations"); 29 " certain optimizations");
30 30
31 31
32 // Compile a function. Should call only if the function has not been compiled. 32 // Compile a function. Should call only if the function has not been compiled.
33 // Arg0: function object. 33 // Arg0: function object.
34 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { 34 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
35 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count()); 35 ASSERT(arguments.Count() == kCompileFunctionRuntimeEntry.argument_count());
36 const Function& function = Function::CheckedHandle(arguments.At(0)); 36 const Function& function = Function::CheckedHandle(arguments.At(0));
37 ASSERT(!function.HasCode()); 37 ASSERT(!function.HasCode());
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 kNoArgumentNames)); 264 kNoArgumentNames));
265 if (result.IsUnhandledException()) { 265 if (result.IsUnhandledException()) {
266 // TODO(srdjan): implement proper exit from compiler. 266 // TODO(srdjan): implement proper exit from compiler.
267 UNIMPLEMENTED(); 267 UNIMPLEMENTED();
268 } 268 }
269 return result.raw(); 269 return result.raw();
270 } 270 }
271 271
272 272
273 } // namespace dart 273 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698