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: dart/lib/compiler/implementation/lib/interceptors.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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('dart:_interceptors'); 5 #library('dart:_interceptors');
6 6
7 import 'dart:coreimpl'; 7 #import('dart:coreimpl');
8 8
9 add$1(var receiver, var value) { 9 add$1(var receiver, var value) {
10 if (isJsArray(receiver)) { 10 if (isJsArray(receiver)) {
11 checkGrowable(receiver, 'add'); 11 checkGrowable(receiver, 'add');
12 JS('Object', r'#.push(#)', receiver, value); 12 JS('Object', r'#.push(#)', receiver, value);
13 return; 13 return;
14 } 14 }
15 return UNINTERCEPTED(receiver.add(value)); 15 return UNINTERCEPTED(receiver.add(value));
16 } 16 }
17 17
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 } else if (isJsArray(receiver)) { 680 } else if (isJsArray(receiver)) {
681 return getOrCreateCachedRuntimeType('List'); 681 return getOrCreateCachedRuntimeType('List');
682 } else { 682 } else {
683 return UNINTERCEPTED(receiver.runtimeType); 683 return UNINTERCEPTED(receiver.runtimeType);
684 } 684 }
685 } 685 }
686 686
687 // TODO(lrn): These getters should be generated automatically for all 687 // TODO(lrn): These getters should be generated automatically for all
688 // intercepted methods. 688 // intercepted methods.
689 get$toString(receiver) => () => toString(receiver); 689 get$toString(receiver) => () => toString(receiver);
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/lib/constant_map.dart ('k') | dart/lib/compiler/implementation/lib/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698