OLD | NEW |
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 Loading... |
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 }; |
35 | 41 |
36 void PreParserTraits::ReportMessageAt(Scanner::Location location, | 42 void PreParserTraits::ReportMessageAt(Scanner::Location location, |
37 const char* message, | 43 const char* message, |
38 const char* arg, | 44 const char* arg, |
39 bool is_reference_error) { | 45 bool is_reference_error) { |
40 ReportMessageAt(location.beg_pos, | 46 ReportMessageAt(location.beg_pos, |
41 location.end_pos, | 47 location.end_pos, |
42 message, | 48 message, |
43 arg, | 49 arg, |
44 is_reference_error); | 50 is_reference_error); |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); | 933 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); |
928 ParseArguments(ok); | 934 ParseArguments(ok); |
929 | 935 |
930 return Expression::Default(); | 936 return Expression::Default(); |
931 } | 937 } |
932 | 938 |
933 #undef CHECK_OK | 939 #undef CHECK_OK |
934 | 940 |
935 | 941 |
936 } } // v8::internal | 942 } } // v8::internal |
OLD | NEW |