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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 223403003: Use closure tracer to identify closures that are not passed to Function.apply (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed issue with failing test Created 6 years, 8 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 | « tests/compiler/dart2js/map_tracer_const_test.dart ('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 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 var receiver; 59 var receiver;
60 } 60 }
61 class Closure implements Function {} 61 class Closure implements Function {}
62 class Null {} 62 class Null {}
63 class Dynamic_ {} 63 class Dynamic_ {}
64 class LinkedHashMap { 64 class LinkedHashMap {
65 factory LinkedHashMap._empty() => null; 65 factory LinkedHashMap._empty() => null;
66 factory LinkedHashMap._literal(elements) => null; 66 factory LinkedHashMap._literal(elements) => null;
67 } 67 }
68 class ConstantMap {} 68 class ConstantMap {}
69 class ConstantStringMap {}
69 class TypeImpl {} 70 class TypeImpl {}
70 S() {} 71 S() {}
71 throwCyclicInit() {} 72 throwCyclicInit() {}
72 throwExpression(e) {} 73 throwExpression(e) {}
73 unwrapException(e) {} 74 unwrapException(e) {}
74 assertHelper(a) {} 75 assertHelper(a) {}
75 isJsIndexable(a, b) {} 76 isJsIndexable(a, b) {}
76 createRuntimeType(a) {} 77 createRuntimeType(a) {}
77 createInvocationMirror(a0, a1, a2, a3, a4, a5) {} 78 createInvocationMirror(a0, a1, a2, a3, a4, a5) {}
78 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {} 79 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 } else { 579 } else {
579 sourceFile = compiler.sourceFiles[uri.toString()]; 580 sourceFile = compiler.sourceFiles[uri.toString()];
580 } 581 }
581 if (sourceFile != null && begin != null && end != null) { 582 if (sourceFile != null && begin != null && end != null) {
582 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); 583 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x));
583 } else { 584 } else {
584 print(message); 585 print(message);
585 } 586 }
586 }; 587 };
587 } 588 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/map_tracer_const_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698