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

Side by Side Diff: src/dtoa.h

Issue 1285183010: Remove grab-bag includes of v8.h from everywhere. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor stylistic issue. Created 5 years, 4 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
« no previous file with comments | « src/deoptimizer.cc ('k') | src/elements.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 // 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_DTOA_H_ 5 #ifndef V8_DTOA_H_
6 #define V8_DTOA_H_ 6 #define V8_DTOA_H_
7 7
8 #include "src/vector.h"
9
8 namespace v8 { 10 namespace v8 {
9 namespace internal { 11 namespace internal {
10 12
11 enum DtoaMode { 13 enum DtoaMode {
12 // Return the shortest correct representation. 14 // Return the shortest correct representation.
13 // For example the output of 0.299999999999999988897 is (the less accurate but 15 // For example the output of 0.299999999999999988897 is (the less accurate but
14 // correct) 0.3. 16 // correct) 0.3.
15 DTOA_SHORTEST, 17 DTOA_SHORTEST,
16 // Return a fixed number of digits after the decimal point. 18 // Return a fixed number of digits after the decimal point.
17 // For instance fixed(0.1, 4) becomes 0.1000 19 // For instance fixed(0.1, 4) becomes 0.1000
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // 'DoubleToAscii' expects the given buffer to be big enough to hold all digits 55 // 'DoubleToAscii' expects the given buffer to be big enough to hold all digits
54 // and a terminating null-character. In SHORTEST-mode it expects a buffer of 56 // and a terminating null-character. In SHORTEST-mode it expects a buffer of
55 // at least kBase10MaximalLength + 1. Otherwise, the size of the output is 57 // at least kBase10MaximalLength + 1. Otherwise, the size of the output is
56 // limited to requested_digits digits plus the null terminator. 58 // limited to requested_digits digits plus the null terminator.
57 void DoubleToAscii(double v, DtoaMode mode, int requested_digits, 59 void DoubleToAscii(double v, DtoaMode mode, int requested_digits,
58 Vector<char> buffer, int* sign, int* length, int* point); 60 Vector<char> buffer, int* sign, int* length, int* point);
59 61
60 } } // namespace v8::internal 62 } } // namespace v8::internal
61 63
62 #endif // V8_DTOA_H_ 64 #endif // V8_DTOA_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698