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

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

Issue 10949003: Revert r12491 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/compiler/implementation/lib/interceptors.dart ('k') | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/js_helper.dart
===================================================================
--- lib/compiler/implementation/lib/js_helper.dart (revision 12499)
+++ lib/compiler/implementation/lib/js_helper.dart (working copy)
@@ -1324,25 +1324,3 @@
void throwCyclicInit(String staticName) {
throw new RuntimeError("Cyclic initialization for static $staticName");
}
-
-class TypeImpl implements Type {
- final String typeName;
- TypeImpl(this.typeName);
- toString() => typeName;
-}
-
-Type getOrCreateCachedRuntimeType(String key) {
- Type runtimeType =
- JS('Type', @'#.runtimeTypeCache[#]', JS_CURRENT_ISOLATE(), key);
- if (runtimeType == null) {
- runtimeType = new TypeImpl(key);
- JS('void', @'#.runtimeTypeCache[#] = #', JS_CURRENT_ISOLATE(), key,
- runtimeType);
- }
- return runtimeType;
-}
-
-String getRuntimeTypeString(var object) {
- var typeInfo = JS('Object', @'#.builtin$typeInfo', object);
- return JS('String', @'#.runtimeType', typeInfo);
-}
« no previous file with comments | « lib/compiler/implementation/lib/interceptors.dart ('k') | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698