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

Unified Diff: src/conversions-inl.h

Issue 9169057: Include what you use for the preparser. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/conversions.cc ('k') | src/diy-fp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/conversions-inl.h
diff --git a/src/conversions-inl.h b/src/conversions-inl.h
index b098a1c29c1022e1c03057a58e319e5740af0e50..04aa9152bf2b03009ae6a366c7e63b578db153d3 100644
--- a/src/conversions-inl.h
+++ b/src/conversions-inl.h
@@ -1,4 +1,4 @@
-// Copyright 2011 the V8 project authors. All rights reserved.
+// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -28,20 +28,15 @@
#ifndef V8_CONVERSIONS_INL_H_
#define V8_CONVERSIONS_INL_H_
-#include <limits.h> // Required for INT_MAX etc.
-#include <math.h>
-#include <float.h> // Required for DBL_MAX and on Win32 for finite()
-#include <stdarg.h>
-#include "globals.h" // Required for V8_INFINITY
-
-// ----------------------------------------------------------------------------
-// Extra POSIX/ANSI functions for Win32/MSVC.
-
#include "conversions.h"
+
+#include <limits.h>
+#include <math.h>
+#include "checks.h"
#include "double.h"
-#include "platform.h"
#include "scanner.h"
#include "strtod.h"
+#include "utils.h"
namespace v8 {
namespace internal {
@@ -102,6 +97,11 @@ int32_t DoubleToInt32(double x) {
}
+uint32_t DoubleToUint32(double x) {
+ return static_cast<uint32_t>(DoubleToInt32(x));
+}
+
+
template <class Iterator, class EndMark>
bool SubStringEquals(Iterator* current,
EndMark end,
« no previous file with comments | « src/conversions.cc ('k') | src/diy-fp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698