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

Unified Diff: compiler/lib/implementation/core.dart

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: junit tests fixed Created 8 years, 9 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 | « compiler/lib/implementation/collections.dart ('k') | compiler/lib/implementation/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/lib/implementation/core.dart
diff --git a/compiler/lib/implementation/core.dart b/compiler/lib/implementation/core.dart
deleted file mode 100644
index 1da59407873b23afef3aad5358a5e67a9386e16d..0000000000000000000000000000000000000000
--- a/compiler/lib/implementation/core.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2011, 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 ConstHelper {
- static String getConstId(var o) native;
-
- static String getConstMapId(Map map) native {
- StringBuffer sb = new StringBuffer();
- sb.add("m");
- bool first = true;
- for (String key in map.getKeys()) {
- if (first) {
- first = false;
- } else {
- sb.add(",");
- }
- sb.add(getConstId(key));
- sb.add(",");
- sb.add(getConstId(map[key]));
- }
- return sb.toString();
- }
-}
-
-class ExceptionHelper {
- static NullPointerException createNullPointerException() native {
- return new NullPointerException();
- }
-
- static ObjectNotClosureException createObjectNotClosureException() native {
- return new ObjectNotClosureException();
- }
-
- static NoSuchMethodException createNoSuchMethodException(
- receiver, functionName, arguments) native {
- return new NoSuchMethodException(receiver, functionName, arguments);
- }
-
- static TypeError createTypeError(String srcType, String dstType) native {
- return new TypeError(srcType, dstType);
- }
-
- static AssertionError createAssertionError() native {
- return new AssertionError();
- }
-}
-
-class _CoreJsUtil {
- static Map _newMapLiteral() native {
- return new LinkedHashMap();
- }
-}
-
« no previous file with comments | « compiler/lib/implementation/collections.dart ('k') | compiler/lib/implementation/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698