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

Side by Side Diff: src/fixed-dtoa.cc

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/feedback-slots.h ('k') | src/flags.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 #include <cmath> 5 #include <cmath>
6 6
7 #include "../include/v8stdint.h" 7 #include "include/v8stdint.h"
8 #include "checks.h" 8 #include "src/checks.h"
9 #include "utils.h" 9 #include "src/utils.h"
10 10
11 #include "double.h" 11 #include "src/double.h"
12 #include "fixed-dtoa.h" 12 #include "src/fixed-dtoa.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Represents a 128bit type. This class should be replaced by a native type on 17 // Represents a 128bit type. This class should be replaced by a native type on
18 // platforms that support 128bit integers. 18 // platforms that support 128bit integers.
19 class UInt128 { 19 class UInt128 {
20 public: 20 public:
21 UInt128() : high_bits_(0), low_bits_(0) { } 21 UInt128() : high_bits_(0), low_bits_(0) { }
22 UInt128(uint64_t high, uint64_t low) : high_bits_(high), low_bits_(low) { } 22 UInt128(uint64_t high, uint64_t low) : high_bits_(high), low_bits_(low) { }
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 buffer[*length] = '\0'; 375 buffer[*length] = '\0';
376 if ((*length) == 0) { 376 if ((*length) == 0) {
377 // The string is empty and the decimal_point thus has no importance. Mimick 377 // The string is empty and the decimal_point thus has no importance. Mimick
378 // Gay's dtoa and and set it to -fractional_count. 378 // Gay's dtoa and and set it to -fractional_count.
379 *decimal_point = -fractional_count; 379 *decimal_point = -fractional_count;
380 } 380 }
381 return true; 381 return true;
382 } 382 }
383 383
384 } } // namespace v8::internal 384 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/feedback-slots.h ('k') | src/flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698