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

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

Issue 11412148: Fix handling of sends with wrong arity (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Karl's comments Created 8 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
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_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 'dart:uri'; 7 import 'dart:uri';
8 8
9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
(...skipping 27 matching lines...) Expand all
38 index(a, index) {} 38 index(a, index) {}
39 indexSet(a, index, value) {} 39 indexSet(a, index, value) {}
40 makeLiteralMap(List keyValuePairs) {} 40 makeLiteralMap(List keyValuePairs) {}
41 setRuntimeTypeInfo(a, b) {} 41 setRuntimeTypeInfo(a, b) {}
42 getRuntimeTypeInfo(a) {} 42 getRuntimeTypeInfo(a) {}
43 stringTypeCheck(x) {} 43 stringTypeCheck(x) {}
44 boolConversionCheck(x) {} 44 boolConversionCheck(x) {}
45 abstract class JavaScriptIndexingBehavior {} 45 abstract class JavaScriptIndexingBehavior {}
46 class JSInvocationMirror {} 46 class JSInvocationMirror {}
47 S() {} 47 S() {}
48 assertHelper(a){}'''; 48 assertHelper(a){}
49 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}''';
49 50
50 const String DEFAULT_INTERCEPTORSLIB = r''' 51 const String DEFAULT_INTERCEPTORSLIB = r'''
51 class JSArray { 52 class JSArray {
52 var length; 53 var length;
53 } 54 }
54 class JSString { 55 class JSString {
55 var length; 56 var length;
56 } 57 }
57 class JSNumber { 58 class JSNumber {
58 } 59 }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 operator []=(Node node, Element element) { 262 operator []=(Node node, Element element) {
262 map[node] = element; 263 map[node] = element;
263 } 264 }
264 265
265 operator [](Node node) => map[node]; 266 operator [](Node node) => map[node];
266 267
267 void remove(Node node) { 268 void remove(Node node) {
268 map.remove(node); 269 map.remove(node);
269 } 270 }
270 } 271 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/cpa_inference_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698