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

Side by Side Diff: src/conversions-inl.h

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « src/contexts.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.h » ('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 // 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 #ifndef V8_CONVERSIONS_INL_H_ 5 #ifndef V8_CONVERSIONS_INL_H_
6 #define V8_CONVERSIONS_INL_H_ 6 #define V8_CONVERSIONS_INL_H_
7 7
8 #include <float.h> // Required for DBL_MAX and on Win32 for finite() 8 #include <float.h> // Required for DBL_MAX and on Win32 for finite()
9 #include <limits.h> // Required for INT_MAX etc. 9 #include <limits.h> // Required for INT_MAX etc.
10 #include <stdarg.h> 10 #include <stdarg.h>
11 #include <cmath> 11 #include <cmath>
12 #include "src/globals.h" // Required for V8_INFINITY 12 #include "src/globals.h" // Required for V8_INFINITY
13 #include "src/unicode-cache-inl.h" 13 #include "src/unicode-cache-inl.h"
14 14
15 // ---------------------------------------------------------------------------- 15 // ----------------------------------------------------------------------------
16 // Extra POSIX/ANSI functions for Win32/MSVC. 16 // Extra POSIX/ANSI functions for Win32/MSVC.
17 17
18 #include "src/base/bits.h" 18 #include "src/base/bits.h"
19 #include "src/base/platform/platform.h" 19 #include "src/base/platform/platform.h"
20 #include "src/conversions.h" 20 #include "src/conversions.h"
21 #include "src/double.h" 21 #include "src/double.h"
22 #include "src/objects-inl.h" 22 #include "src/objects-inl.h"
23 #include "src/scanner.h"
24 #include "src/strtod.h" 23 #include "src/strtod.h"
25 24
26 namespace v8 { 25 namespace v8 {
27 namespace internal { 26 namespace internal {
28 27
29 inline double JunkStringValue() { 28 inline double JunkStringValue() {
30 return bit_cast<double, uint64_t>(kQuietNaNMask); 29 return bit_cast<double, uint64_t>(kQuietNaNMask);
31 } 30 }
32 31
33 32
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 buffer[buffer_pos] = '\0'; 754 buffer[buffer_pos] = '\0';
756 755
757 double converted = Strtod(Vector<const char>(buffer, buffer_pos), exponent); 756 double converted = Strtod(Vector<const char>(buffer, buffer_pos), exponent);
758 return (sign == NEGATIVE) ? -converted : converted; 757 return (sign == NEGATIVE) ? -converted : converted;
759 } 758 }
760 759
761 } // namespace internal 760 } // namespace internal
762 } // namespace v8 761 } // namespace v8
763 762
764 #endif // V8_CONVERSIONS_INL_H_ 763 #endif // V8_CONVERSIONS_INL_H_
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698