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

Side by Side Diff: src/preparser.cc

Issue 7308004: Extract string->double and double->string conversions for use in the preparser. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git utd Created 9 years, 5 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 | « src/liveobjectlist.cc ('k') | src/strtod.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20 matching lines...) Expand all
31 #include "checks.h" 31 #include "checks.h"
32 #include "allocation.h" 32 #include "allocation.h"
33 #include "utils.h" 33 #include "utils.h"
34 #include "list.h" 34 #include "list.h"
35 35
36 #include "scanner-base.h" 36 #include "scanner-base.h"
37 #include "preparse-data-format.h" 37 #include "preparse-data-format.h"
38 #include "preparse-data.h" 38 #include "preparse-data.h"
39 #include "preparser.h" 39 #include "preparser.h"
40 40
41 #include "conversions-inl.h"
42
41 namespace v8 { 43 namespace v8 {
42 namespace preparser { 44 namespace preparser {
43 45
44 // Preparsing checks a JavaScript program and emits preparse-data that helps 46 // Preparsing checks a JavaScript program and emits preparse-data that helps
45 // a later parsing to be faster. 47 // a later parsing to be faster.
46 // See preparser-data.h for the data. 48 // See preparser-data.h for the data.
47 49
48 // The PreParser checks that the syntax follows the grammar for JavaScript, 50 // The PreParser checks that the syntax follows the grammar for JavaScript,
49 // and collects some information about the program along the way. 51 // and collects some information about the program along the way.
50 // The grammar check is only performed in order to understand the program 52 // The grammar check is only performed in order to understand the program
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 return result; 1456 return result;
1455 } 1457 }
1456 1458
1457 bool PreParser::peek_any_identifier() { 1459 bool PreParser::peek_any_identifier() {
1458 i::Token::Value next = peek(); 1460 i::Token::Value next = peek();
1459 return next == i::Token::IDENTIFIER || 1461 return next == i::Token::IDENTIFIER ||
1460 next == i::Token::FUTURE_RESERVED_WORD || 1462 next == i::Token::FUTURE_RESERVED_WORD ||
1461 next == i::Token::FUTURE_STRICT_RESERVED_WORD; 1463 next == i::Token::FUTURE_STRICT_RESERVED_WORD;
1462 } 1464 }
1463 } } // v8::preparser 1465 } } // v8::preparser
OLDNEW
« no previous file with comments | « src/liveobjectlist.cc ('k') | src/strtod.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698