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 11861007: Move indexSet and unary operators to the new interceptor mechanism. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « sdk/lib/_internal/compiler/implementation/ssa/tracer.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/elements/elements.dar t'; 10 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 abstract class JavaScriptIndexingBehavior {} 51 abstract class JavaScriptIndexingBehavior {}
52 class JSInvocationMirror {} 52 class JSInvocationMirror {}
53 S() {} 53 S() {}
54 assertHelper(a){} 54 assertHelper(a){}
55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; 55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}''';
56 56
57 const String DEFAULT_INTERCEPTORSLIB = r''' 57 const String DEFAULT_INTERCEPTORSLIB = r'''
58 class JSArray { 58 class JSArray {
59 var length; 59 var length;
60 operator[](index) {} 60 operator[](index) {}
61 operator[]=(index, value) {}
61 var add; 62 var add;
62 } 63 }
63 class JSString { 64 class JSString {
64 var length; 65 var length;
65 operator[](index) {} 66 operator[](index) {}
66 } 67 }
67 class JSNumber { 68 class JSNumber {
68 } 69 }
69 class JSInt { 70 class JSInt {
70 } 71 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 operator []=(Node node, Element element) { 298 operator []=(Node node, Element element) {
298 map[node] = element; 299 map[node] = element;
299 } 300 }
300 301
301 operator [](Node node) => map[node]; 302 operator [](Node node) => map[node];
302 303
303 void remove(Node node) { 304 void remove(Node node) {
304 map.remove(node); 305 map.remove(node);
305 } 306 }
306 } 307 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/tracer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698