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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/interceptors.dart

Issue 949753005: Add String.replaceRange and use it in replaceFirst{,Mapped}. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 5 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
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_string.dart » ('j') | 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 _interceptors; 5 library _interceptors;
6 6
7 import 'dart:_js_embedded_names' show 7 import 'dart:_js_embedded_names' show
8 DISPATCH_PROPERTY_NAME, 8 DISPATCH_PROPERTY_NAME,
9 TYPE_TO_INTERCEPTOR_MAP; 9 TYPE_TO_INTERCEPTOR_MAP;
10 10
(...skipping 13 matching lines...) Expand all
24 initNativeDispatch, 24 initNativeDispatch,
25 initNativeDispatchFlag, 25 initNativeDispatchFlag,
26 regExpGetNative, 26 regExpGetNative,
27 regExpCaptureCount, 27 regExpCaptureCount,
28 stringContainsUnchecked, 28 stringContainsUnchecked,
29 stringLastIndexOfUnchecked, 29 stringLastIndexOfUnchecked,
30 stringReplaceAllFuncUnchecked, 30 stringReplaceAllFuncUnchecked,
31 stringReplaceAllUnchecked, 31 stringReplaceAllUnchecked,
32 stringReplaceFirstUnchecked, 32 stringReplaceFirstUnchecked,
33 stringReplaceFirstMappedUnchecked, 33 stringReplaceFirstMappedUnchecked,
34 stringReplaceRangeUnchecked,
34 lookupAndCacheInterceptor, 35 lookupAndCacheInterceptor,
35 lookupDispatchRecord, 36 lookupDispatchRecord,
36 StringMatch, 37 StringMatch,
37 firstMatchAfter, 38 firstMatchAfter,
38 NoInline; 39 NoInline;
39 import 'dart:_foreign_helper' show 40 import 'dart:_foreign_helper' show
40 JS, 41 JS,
41 JS_EFFECT, 42 JS_EFFECT,
42 JS_EMBEDDED_GLOBAL, 43 JS_EMBEDDED_GLOBAL,
43 JS_INTERCEPTOR_CONSTANT, 44 JS_INTERCEPTOR_CONSTANT,
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 * Interceptor for unclassified JavaScript objects, typically objects with a 399 * Interceptor for unclassified JavaScript objects, typically objects with a
399 * non-trivial prototype chain. 400 * non-trivial prototype chain.
400 * 401 *
401 * This class also serves as a fallback for unknown JavaScript exceptions. 402 * This class also serves as a fallback for unknown JavaScript exceptions.
402 */ 403 */
403 class UnknownJavaScriptObject extends JavaScriptObject { 404 class UnknownJavaScriptObject extends JavaScriptObject {
404 const UnknownJavaScriptObject(); 405 const UnknownJavaScriptObject();
405 406
406 String toString() => JS('String', 'String(#)', this); 407 String toString() => JS('String', 'String(#)', this);
407 } 408 }
OLDNEW
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698