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

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

Issue 12087101: Turn getters and setters that we know are not intercepted into regular getter and setter calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const String DEFAULT_INTERCEPTORSLIB = r''' 55 const String DEFAULT_INTERCEPTORSLIB = r'''
56 class JSArray { 56 class JSArray {
57 var length; 57 var length;
58 operator[](index) {} 58 operator[](index) {}
59 operator[]=(index, value) {} 59 operator[]=(index, value) {}
60 var add; 60 var add;
61 } 61 }
62 class JSString { 62 class JSString {
63 var length; 63 var length;
64 operator[](index) {} 64 operator[](index) {}
65 toString() {}
65 } 66 }
66 class JSNumber { 67 class JSNumber {
67 operator-() {} 68 operator-() {}
68 operator +(other) {} 69 operator +(other) {}
69 operator -(other) {} 70 operator -(other) {}
70 operator ~/(other) {} 71 operator ~/(other) {}
71 operator /(other) {} 72 operator /(other) {}
72 operator *(other) {} 73 operator *(other) {}
73 operator <<(other) {} 74 operator <<(other) {}
74 operator >>(other) {} 75 operator >>(other) {}
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 operator []=(Node node, Element element) { 332 operator []=(Node node, Element element) {
332 map[node] = element; 333 map[node] = element;
333 } 334 }
334 335
335 operator [](Node node) => map[node]; 336 operator [](Node node) => map[node];
336 337
337 void remove(Node node) { 338 void remove(Node node) {
338 map.remove(node); 339 map.remove(node);
339 } 340 }
340 } 341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698