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

Unified Diff: sdk/lib/_blink/dartium/_blink_dartium.dart

Issue 300923003: Modify blink type map to finalize lazily (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make tables non-const Created 6 years, 7 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 | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_blink/dartium/_blink_dartium.dart
diff --git a/sdk/lib/_blink/dartium/_blink_dartium.dart b/sdk/lib/_blink/dartium/_blink_dartium.dart
index 06f74ffcd5a1c6d889aa09c42f5b0d203a7c9d37..b7d22a8811b5428cd3eae37a92db8f20c22c106e 100644
--- a/sdk/lib/_blink/dartium/_blink_dartium.dart
+++ b/sdk/lib/_blink/dartium/_blink_dartium.dart
@@ -7186,10 +7186,10 @@ Native_URL_createObjectUrl(blob_OR_source_OR_stream) {
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
return Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
+ if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
return Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
+ if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
return Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream);
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -7197,9 +7197,9 @@ Native_URL_createObjectUrl(blob_OR_source_OR_stream) {
Native_URL__createObjectURL_1_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_Blob";
-Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaStream";
+Native_URL__createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaSource";
-Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaSource";
+Native_URL__createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaStream";
Native_URL_createObjectUrlFromBlob_Callback(blob) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_Blob";
@@ -8298,17 +8298,17 @@ Native_XSLTProcessor_transformToFragment_Callback(mthis, source, docVal) native
Type _getType(String key) {
// TODO(vsm): Add Cross Frame and JS types here as well.
if (htmlBlinkMap.containsKey(key))
vsm 2014/05/28 15:07:45 If initializing htmlBlinkMap is too expensive, we
siva 2014/05/30 23:53:33 If we are going to go with specialization for cert
- return htmlBlinkMap[key];
+ return htmlBlinkMap[key]();
if (indexed_dbBlinkMap.containsKey(key))
- return indexed_dbBlinkMap[key];
+ return indexed_dbBlinkMap[key]();
if (web_audioBlinkMap.containsKey(key))
- return web_audioBlinkMap[key];
+ return web_audioBlinkMap[key]();
if (web_glBlinkMap.containsKey(key))
- return web_glBlinkMap[key];
+ return web_glBlinkMap[key]();
if (web_sqlBlinkMap.containsKey(key))
- return web_sqlBlinkMap[key];
+ return web_sqlBlinkMap[key]();
if (svgBlinkMap.containsKey(key))
- return svgBlinkMap[key];
+ return svgBlinkMap[key]();
return null;
}// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698