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

Side by Side Diff: frog/minfrog

Issue 9111002: Fixes improper boxing in obj.dynamic (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « frog/lib/corelib.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env node 1 #!/usr/bin/env node
2 // ********** Library dart:core ************** 2 // ********** Library dart:core **************
3 // ********** Natives dart:core ************** 3 // ********** Natives dart:core **************
4 function $throw(e) { 4 function $throw(e) {
5 // If e is not a value, we can use V8's captureStackTrace utility method. 5 // If e is not a value, we can use V8's captureStackTrace utility method.
6 // TODO(jmesserly): capture the stack trace on other JS engines. 6 // TODO(jmesserly): capture the stack trace on other JS engines.
7 if (e && (typeof e == 'object') && Error.captureStackTrace) { 7 if (e && (typeof e == 'object') && Error.captureStackTrace) {
8 // TODO(jmesserly): this will clobber the e.stack property 8 // TODO(jmesserly): this will clobber the e.stack property
9 Error.captureStackTrace(e, $throw); 9 Error.captureStackTrace(e, $throw);
10 } 10 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (typeof(x) == 'number' && typeof(y) == 'number') { 64 if (typeof(x) == 'number' && typeof(y) == 'number') {
65 if (y == 0) $throw(new IntegerDivisionByZeroException()); 65 if (y == 0) $throw(new IntegerDivisionByZeroException());
66 var tmp = x / y; 66 var tmp = x / y;
67 return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp); 67 return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp);
68 } else { 68 } else {
69 return x.$truncdiv(y); 69 return x.$truncdiv(y);
70 } 70 }
71 } 71 }
72 // ********** Code for Object ************** 72 // ********** Code for Object **************
73 Object.prototype.get$dynamic = function() { 73 Object.prototype.get$dynamic = function() {
74 return this; 74 "use strict"; return this;
75 } 75 }
76 Object.prototype.noSuchMethod = function(name, args) { 76 Object.prototype.noSuchMethod = function(name, args) {
77 $throw(new NoSuchMethodException(this, name, args)); 77 $throw(new NoSuchMethodException(this, name, args));
78 } 78 }
79 Object.prototype._checkExtends$0 = function() { 79 Object.prototype._checkExtends$0 = function() {
80 return this.noSuchMethod("_checkExtends", []); 80 return this.noSuchMethod("_checkExtends", []);
81 }; 81 };
82 Object.prototype._checkNonStatic$1 = function($0) { 82 Object.prototype._checkNonStatic$1 = function($0) {
83 return this.noSuchMethod("_checkNonStatic", [$0]); 83 return this.noSuchMethod("_checkNonStatic", [$0]);
84 }; 84 };
(...skipping 13704 matching lines...) Expand 10 before | Expand all | Expand 10 after
13789 $globals._RED_COLOR = '\u001b[31m'; 13789 $globals._RED_COLOR = '\u001b[31m';
13790 } 13790 }
13791 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/; 13791 var const$1 = new EmptyQueueException()/*const EmptyQueueException()*/;
13792 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/; 13792 var const$126 = new IllegalAccessException()/*const IllegalAccessException()*/;
13793 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/; 13793 var const$127 = ImmutableList.ImmutableList$from$factory([])/*const []*/;
13794 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/; 13794 var const$2 = new _DeletedKeySentinel()/*const _DeletedKeySentinel()*/;
13795 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/; 13795 var const$7 = new NoMoreElementsException()/*const NoMoreElementsException()*/;
13796 var $globals = {}; 13796 var $globals = {};
13797 $static_init(); 13797 $static_init();
13798 main(); 13798 main();
OLDNEW
« no previous file with comments | « frog/lib/corelib.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698