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

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

Issue 10689099: Add --trace_type_check_elimination flag for debugging purposes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/flow_graph_builder.h » ('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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler_macros.h" 7 #include "vm/assembler_macros.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 cloned_ctx.SetAt(i, Instance::Handle(ctx.At(i))); 317 cloned_ctx.SetAt(i, Instance::Handle(ctx.At(i)));
318 } 318 }
319 arguments.SetReturn(cloned_ctx); 319 arguments.SetReturn(cloned_ctx);
320 } 320 }
321 321
322 322
323 // Helper routine for tracing a type check. 323 // Helper routine for tracing a type check.
324 static void PrintTypeCheck( 324 static void PrintTypeCheck(
325 const char* message, 325 const char* message,
326 const Instance& instance, 326 const Instance& instance,
327 const AbstractType&type, 327 const AbstractType& type,
328 const AbstractTypeArguments& instantiator_type_arguments, 328 const AbstractTypeArguments& instantiator_type_arguments,
329 const Bool& result) { 329 const Bool& result) {
330 DartFrameIterator iterator; 330 DartFrameIterator iterator;
331 StackFrame* caller_frame = iterator.NextFrame(); 331 StackFrame* caller_frame = iterator.NextFrame();
332 ASSERT(caller_frame != NULL); 332 ASSERT(caller_frame != NULL);
333 333
334 const Type& instance_type = Type::Handle(instance.GetType()); 334 const Type& instance_type = Type::Handle(instance.GetType());
335 ASSERT(instance_type.IsInstantiated()); 335 ASSERT(instance_type.IsInstantiated());
336 if (type.IsInstantiated()) { 336 if (type.IsInstantiated()) {
337 OS::Print("%s: '%s' %s '%s' (pc: 0x%x).\n", 337 OS::Print("%s: '%s' %s '%s' (pc: 0x%x).\n",
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 } 1522 }
1523 } 1523 }
1524 } 1524 }
1525 // The cache is null terminated, therefore the loop above should never 1525 // The cache is null terminated, therefore the loop above should never
1526 // terminate by itself. 1526 // terminate by itself.
1527 UNREACHABLE(); 1527 UNREACHABLE();
1528 return Code::null(); 1528 return Code::null();
1529 } 1529 }
1530 1530
1531 } // namespace dart 1531 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698