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

Unified Diff: corelib/src/implementation/regexp.dart

Issue 10880020: Use patching for regexp implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Real VM fix from Ivan. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/implementation/corelib_impl_sources.gypi ('k') | lib/compiler/implementation/lib/coreimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/regexp.dart
diff --git a/corelib/src/implementation/regexp.dart b/corelib/src/implementation/regexp.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ec20e72c0f53245d2476df8af9bb12fad926f7c9
--- /dev/null
+++ b/corelib/src/implementation/regexp.dart
@@ -0,0 +1,15 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+class JSSyntaxRegExp implements RegExp {
+ external const JSSyntaxRegExp(String pattern,
+ [bool multiLine, bool ignoreCase]);
+ external Match firstMatch(String str);
+ external Iterable<Match> allMatches(String str);
+ external bool hasMatch(String str);
+ external String stringMatch(String str);
+ external String get pattern();
+ external bool get multiLine();
+ external bool get ignoreCase();
+}
« no previous file with comments | « corelib/src/implementation/corelib_impl_sources.gypi ('k') | lib/compiler/implementation/lib/coreimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698