| 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,
|
|
|