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

Side by Side Diff: frog/frogsh

Issue 8739002: Frog: Fix parsing of hex literals with >31 bits (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: put issue# in comment Created 9 years 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 | frog/parser.dart » ('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 /** 4 /**
5 * Generates a dynamic call stub for a function. 5 * Generates a dynamic call stub for a function.
6 * Our goal is to create a stub method like this on-the-fly: 6 * Our goal is to create a stub method like this on-the-fly:
7 * function($0, $1, capture) { this($0, $1, true, capture); } 7 * function($0, $1, capture) { this($0, $1, true, capture); }
8 * 8 *
9 * This stub then replaces the dynamic one on Function, with one that is 9 * This stub then replaces the dynamic one on Function, with one that is
10 * specialized for that particular function, taking into account its default 10 * specialized for that particular function, taking into account its default
(...skipping 19856 matching lines...) Expand 10 before | Expand all | Expand 10 after
19867 else { 19867 else {
19868 return -1; 19868 return -1;
19869 } 19869 }
19870 } 19870 }
19871 lang_Parser.parseHex = function(hex) { 19871 lang_Parser.parseHex = function(hex) {
19872 var result = 0; 19872 var result = 0;
19873 for (var i = 0; 19873 for (var i = 0;
19874 i < hex.length; i++) { 19874 i < hex.length; i++) {
19875 var digit = lang_Parser._hexDigit(hex.charCodeAt(i)); 19875 var digit = lang_Parser._hexDigit(hex.charCodeAt(i));
19876 $assert($ne(digit, -1), "digit != -1", "parser.dart", 1339, 14); 19876 $assert($ne(digit, -1), "digit != -1", "parser.dart", 1339, 14);
19877 result = (result << 4) + $assert_num(digit); 19877 result = (result * 16) + $assert_num(digit);
19878 } 19878 }
19879 return $assert_num(result); 19879 return $assert_num(result);
19880 } 19880 }
19881 lang_Parser.prototype.finishNewExpression = function(start, isConst) { 19881 lang_Parser.prototype.finishNewExpression = function(start, isConst) {
19882 var type = this.type(0); 19882 var type = this.type(0);
19883 var name = null; 19883 var name = null;
19884 if ($notnull_bool(this._maybeEat(14/*TokenKind.DOT*/))) { 19884 if ($notnull_bool(this._maybeEat(14/*TokenKind.DOT*/))) {
19885 name = this.identifier(); 19885 name = this.identifier();
19886 } 19886 }
19887 var args = this.arguments(); 19887 var args = this.arguments();
(...skipping 4267 matching lines...) Expand 10 before | Expand all | Expand 10 after
24155 NATIVE, 24155 NATIVE,
24156 NEGATE, 24156 NEGATE,
24157 OPERATOR, 24157 OPERATOR,
24158 SET, 24158 SET,
24159 SOURCE, 24159 SOURCE,
24160 STATIC, 24160 STATIC,
24161 TYPEDEF ]*/; 24161 TYPEDEF ]*/;
24162 var $globals = {}; 24162 var $globals = {};
24163 $static_init(); 24163 $static_init();
24164 main(); 24164 main();
OLDNEW
« no previous file with comments | « no previous file | frog/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698