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

Side by Side Diff: client/dom/generated/wrapping_dom.js

Issue 8301007: Convert cache property from array to object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | client/dom/scripts/template_wrapping_dom.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated Dart DOM implementation. 6 // Auto-generated Dart DOM implementation.
7 7
8 8
9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) { 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr or(_this) {
10 try { 10 try {
(...skipping 26709 matching lines...) Expand 10 before | Expand all | Expand 10 after
26720 } 26720 }
26721 } else { 26721 } else {
26722 return (void 0); 26722 return (void 0);
26723 } 26723 }
26724 } 26724 }
26725 } 26725 }
26726 26726
26727 function __dom_set_cached(hashtablename, obj, isolatetoken, value) { 26727 function __dom_set_cached(hashtablename, obj, isolatetoken, value) {
26728 var hashtable; 26728 var hashtable;
26729 if (!obj.hasOwnProperty(hashtablename)) { 26729 if (!obj.hasOwnProperty(hashtablename)) {
26730 hashtable = []; 26730 hashtable = {};
26731 obj[hashtablename] = hashtable; 26731 obj[hashtablename] = hashtable;
26732 } else { 26732 } else {
26733 hashtable = obj[hashtablename]; 26733 hashtable = obj[hashtablename];
26734 } 26734 }
26735 var hash = isolatetoken.hashCode; 26735 var hash = isolatetoken.hashCode;
26736 while (true) { 26736 while (true) {
26737 var entry = hashtable[hash]; 26737 var entry = hashtable[hash];
26738 if (entry) { 26738 if (entry) {
26739 if (entry.$token === isolatetoken) { 26739 if (entry.$token === isolatetoken) {
26740 throw "Wrapper already exists for this object: " + obj; 26740 throw "Wrapper already exists for this object: " + obj;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
26825 function native__NativeDomGlobalProperties_getWindow() { 26825 function native__NativeDomGlobalProperties_getWindow() {
26826 // TODO: Should the window be obtained from an isolate? 26826 // TODO: Should the window be obtained from an isolate?
26827 return __dom_wrap(window); 26827 return __dom_wrap(window);
26828 } 26828 }
26829 26829
26830 // Declared in src/GlobalProperties.dart 26830 // Declared in src/GlobalProperties.dart
26831 function native__NativeDomGlobalProperties_getDocument() { 26831 function native__NativeDomGlobalProperties_getDocument() {
26832 // TODO: Should the window be obtained from an isolate? 26832 // TODO: Should the window be obtained from an isolate?
26833 return __dom_wrap(window.document); 26833 return __dom_wrap(window.document);
26834 } 26834 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/scripts/template_wrapping_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698