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

Side by Side Diff: src/preparser.cc

Issue 633053002: Do not save/restore AST id generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/preparser.h ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cmath> 5 #include <cmath>
6 6
7 #include "include/v8stdint.h" 7 #include "include/v8stdint.h"
8 8
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 14 matching lines...) Expand all
25 // Usually defined in math.h, but not in MSVC until VS2013+. 25 // Usually defined in math.h, but not in MSVC until VS2013+.
26 // Abstracted to work 26 // Abstracted to work
27 int isfinite(double value); 27 int isfinite(double value);
28 28
29 } // namespace std 29 } // namespace std
30 #endif 30 #endif
31 31
32 namespace v8 { 32 namespace v8 {
33 namespace internal { 33 namespace internal {
34 34
35 class PreParserTraits::Checkpoint
36 : public ParserBase<PreParserTraits>::CheckpointBase {
37 public:
38 explicit Checkpoint(ParserBase<PreParserTraits>* parser)
39 : ParserBase<PreParserTraits>::CheckpointBase(parser) {}
40 };
41
42 void PreParserTraits::ReportMessageAt(Scanner::Location location, 35 void PreParserTraits::ReportMessageAt(Scanner::Location location,
43 const char* message, 36 const char* message,
44 const char* arg, 37 const char* arg,
45 bool is_reference_error) { 38 bool is_reference_error) {
46 ReportMessageAt(location.beg_pos, 39 ReportMessageAt(location.beg_pos,
47 location.end_pos, 40 location.end_pos,
48 message, 41 message,
49 arg, 42 arg,
50 is_reference_error); 43 is_reference_error);
51 } 44 }
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); 944 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK);
952 ParseArguments(ok); 945 ParseArguments(ok);
953 946
954 return Expression::Default(); 947 return Expression::Default();
955 } 948 }
956 949
957 #undef CHECK_OK 950 #undef CHECK_OK
958 951
959 952
960 } } // v8::internal 953 } } // v8::internal
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698