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 11414130: Naive handling of List#[] and List#[]= (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sync to head Created 7 years, 11 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/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:collection'; 7 import 'dart:collection';
8 import 'dart:uri'; 8 import 'dart:uri';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
(...skipping 29 matching lines...) Expand all
40 guard$stringOrArray(x) { return x; } 40 guard$stringOrArray(x) { return x; }
41 makeLiteralMap(List keyValuePairs) {} 41 makeLiteralMap(List keyValuePairs) {}
42 setRuntimeTypeInfo(a, b) {} 42 setRuntimeTypeInfo(a, b) {}
43 getRuntimeTypeInfo(a) {} 43 getRuntimeTypeInfo(a) {}
44 stringTypeCheck(x) {} 44 stringTypeCheck(x) {}
45 boolConversionCheck(x) {} 45 boolConversionCheck(x) {}
46 abstract class JavaScriptIndexingBehavior {} 46 abstract class JavaScriptIndexingBehavior {}
47 class JSInvocationMirror {} 47 class JSInvocationMirror {}
48 S() {} 48 S() {}
49 assertHelper(a){} 49 assertHelper(a){}
50 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; 50 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}
51 throwAbstractClassInstantiationError(className) {}''';
51 52
52 const String DEFAULT_INTERCEPTORSLIB = r''' 53 const String DEFAULT_INTERCEPTORSLIB = r'''
53 class JSArray { 54 class JSArray {
54 var length; 55 var length;
55 operator[](index) {} 56 operator[](index) {}
56 operator[]=(index, value) {} 57 operator[]=(index, value) {}
57 var add; 58 var add;
58 } 59 }
59 class JSString { 60 class JSString {
60 var length; 61 var length;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 operator []=(Node node, Element element) { 329 operator []=(Node node, Element element) {
329 map[node] = element; 330 map[node] = element;
330 } 331 }
331 332
332 operator [](Node node) => map[node]; 333 operator [](Node node) => map[node];
333 334
334 void remove(Node node) { 335 void remove(Node node) {
335 map.remove(node); 336 map.remove(node);
336 } 337 }
337 } 338 }
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