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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11338033: Do not emit is dynamic/Object checks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | lib/html/scripts/systemnative.py » ('j') | lib/html/scripts/systemnative.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index f129f36a6a2494447c52e7eb5acefcbe68274255..1c66ac140966c7a14cbd04c31594111437d0359f 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -17404,9 +17404,7 @@ class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
- if ((key_OR_range is dynamic || key_OR_range == null)) {
- return _count_3(key_OR_range);
- }
+ return _count_3(key_OR_range);
throw "Incorrect number or type of arguments";
}
@@ -17420,9 +17418,7 @@ class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
if ((key is IDBKeyRange || key == null)) {
return _get_1(key);
}
- if ((key is dynamic || key == null)) {
- return _get_2(key);
- }
+ return _get_2(key);
throw "Incorrect number or type of arguments";
}
@@ -17434,9 +17430,7 @@ class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
if ((key is IDBKeyRange || key == null)) {
return _getKey_1(key);
}
- if ((key is dynamic || key == null)) {
- return _getKey_2(key);
- }
+ return _getKey_2(key);
throw "Incorrect number or type of arguments";
}
@@ -17454,10 +17448,10 @@ class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && !?direction) {
+ if (!?direction) {
return _openCursor_4(key_OR_range);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && (direction is String || direction == null)) {
+ if ((direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
@@ -17483,10 +17477,10 @@ class _IDBIndexImpl extends NativeFieldWrapperClass1 implements IDBIndex {
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openKeyCursor_3(key_OR_range, direction);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && !?direction) {
+ if (!?direction) {
return _openKeyCursor_4(key_OR_range);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && (direction is String || direction == null)) {
+ if ((direction is String || direction == null)) {
return _openKeyCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
@@ -17731,9 +17725,7 @@ class _IDBObjectStoreImpl extends NativeFieldWrapperClass1 implements IDBObjectS
if ((key_OR_range is IDBKeyRange || key_OR_range == null)) {
return _count_2(key_OR_range);
}
- if ((key_OR_range is dynamic || key_OR_range == null)) {
- return _count_3(key_OR_range);
- }
+ return _count_3(key_OR_range);
throw "Incorrect number or type of arguments";
}
@@ -17771,9 +17763,7 @@ class _IDBObjectStoreImpl extends NativeFieldWrapperClass1 implements IDBObjectS
if ((key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null)) {
return _delete_1(key_OR_keyRange);
}
- if ((key_OR_keyRange is dynamic || key_OR_keyRange == null)) {
- return _delete_2(key_OR_keyRange);
- }
+ return _delete_2(key_OR_keyRange);
throw "Incorrect number or type of arguments";
}
@@ -17787,9 +17777,7 @@ class _IDBObjectStoreImpl extends NativeFieldWrapperClass1 implements IDBObjectS
if ((key is IDBKeyRange || key == null)) {
return _get_1(key);
}
- if ((key is dynamic || key == null)) {
- return _get_2(key);
- }
+ return _get_2(key);
throw "Incorrect number or type of arguments";
}
@@ -17809,10 +17797,10 @@ class _IDBObjectStoreImpl extends NativeFieldWrapperClass1 implements IDBObjectS
if ((key_OR_range is IDBKeyRange || key_OR_range == null) && (direction is String || direction == null)) {
return _openCursor_3(key_OR_range, direction);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && !?direction) {
+ if (!?direction) {
return _openCursor_4(key_OR_range);
}
- if ((key_OR_range is dynamic || key_OR_range == null) && (direction is String || direction == null)) {
+ if ((direction is String || direction == null)) {
return _openCursor_5(key_OR_range, direction);
}
throw "Incorrect number or type of arguments";
« no previous file with comments | « no previous file | lib/html/scripts/systemnative.py » ('j') | lib/html/scripts/systemnative.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698