| 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" |
| 11 #include "src/conversions-inl.h" | 11 #include "src/conversions-inl.h" |
| 12 #include "src/conversions.h" | 12 #include "src/conversions.h" |
| 13 #include "src/globals.h" | 13 #include "src/globals.h" |
| 14 #include "src/hashmap.h" | 14 #include "src/hashmap.h" |
| 15 #include "src/list.h" | 15 #include "src/list.h" |
| 16 #include "src/preparse-data.h" | 16 #include "src/preparse-data.h" |
| 17 #include "src/preparse-data-format.h" | 17 #include "src/preparse-data-format.h" |
| 18 #include "src/preparser.h" | 18 #include "src/preparser.h" |
| 19 #include "src/unicode.h" | 19 #include "src/unicode.h" |
| 20 #include "src/utils.h" | 20 #include "src/utils.h" |
| 21 | 21 |
| 22 #if V8_LIBC_MSVCRT && (_MSC_VER < 1800) | |
| 23 namespace std { | |
| 24 | |
| 25 // Usually defined in math.h, but not in MSVC until VS2013+. | |
| 26 // Abstracted to work | |
| 27 int isfinite(double value); | |
| 28 | |
| 29 } // namespace std | |
| 30 #endif | |
| 31 | |
| 32 namespace v8 { | 22 namespace v8 { |
| 33 namespace internal { | 23 namespace internal { |
| 34 | 24 |
| 35 void PreParserTraits::ReportMessageAt(Scanner::Location location, | 25 void PreParserTraits::ReportMessageAt(Scanner::Location location, |
| 36 const char* message, | 26 const char* message, |
| 37 const char* arg, | 27 const char* arg, |
| 38 bool is_reference_error) { | 28 bool is_reference_error) { |
| 39 ReportMessageAt(location.beg_pos, | 29 ReportMessageAt(location.beg_pos, |
| 40 location.end_pos, | 30 location.end_pos, |
| 41 message, | 31 message, |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); | 936 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); |
| 947 ParseArguments(ok); | 937 ParseArguments(ok); |
| 948 | 938 |
| 949 return Expression::Default(); | 939 return Expression::Default(); |
| 950 } | 940 } |
| 951 | 941 |
| 952 #undef CHECK_OK | 942 #undef CHECK_OK |
| 953 | 943 |
| 954 | 944 |
| 955 } } // v8::internal | 945 } } // v8::internal |
| OLD | NEW |