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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 11576032: Revert r16112 from trunk. (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: 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
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 // Patch file for dart:core classes. 5 // Patch file for dart:core classes.
6 6
7 // Patch for 'print' function. 7 // Patch for 'print' function.
8 patch void print(var object) { 8 patch void print(var object) {
9 if (object is String) { 9 if (object is String) {
10 Primitives.printString(object); 10 Primitives.printString(object);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 patch class RegExp { 206 patch class RegExp {
207 patch factory RegExp(String pattern, 207 patch factory RegExp(String pattern,
208 {bool multiLine: false, 208 {bool multiLine: false,
209 bool ignoreCase: false}) 209 bool ignoreCase: false})
210 => new JSSyntaxRegExp(pattern, 210 => new JSSyntaxRegExp(pattern,
211 multiLine: multiLine, 211 multiLine: multiLine,
212 ignoreCase: ignoreCase); 212 ignoreCase: ignoreCase);
213 } 213 }
214 214
215 // Patch for 'identical' function. 215 // Patch for 'identical' function.
216 // This is very magical: the compiler knows how to optimize a call to 216 patch bool identical(Object a, Object b) {
217 // identical, so we can just express identical in terms of itself. 217 throw new Error('Should not reach the body of identical');
218 patch bool identical(Object a, Object b) => identical(a, b); 218 }
OLDNEW
« no previous file with comments | « dart/runtime/lib/identical_patch.dart ('k') | dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698