Revision: 22933
Author: [email protected]
Date: Wed Aug 6 13:45:59 2014 UTC
Log: Move fdlibm from v8::internal to v8::fdlibm.
[email protected]
Review URL: https://codereview.chromium.org/446863002
http://code.google.com/p/v8/source/detail?r=22933
Modified:
/branches/bleeding_edge/src/bootstrapper.cc
/branches/bleeding_edge/src/runtime.cc
/branches/bleeding_edge/third_party/fdlibm/fdlibm.cc
/branches/bleeding_edge/third_party/fdlibm/fdlibm.h
=======================================
--- /branches/bleeding_edge/src/bootstrapper.cc Wed Aug 6 11:39:39 2014 UTC
+++ /branches/bleeding_edge/src/bootstrapper.cc Wed Aug 6 13:45:59 2014 UTC
@@ -2651,11 +2651,12 @@
NONE).Assert();
// Initialize trigonometric lookup tables and constants.
- const int constants_size =
ARRAY_SIZE(TrigonometricConstants::constants);
+ const int constants_size =
+ ARRAY_SIZE(fdlibm::TrigonometricConstants::constants);
const int table_num_bytes = constants_size * kDoubleSize;
v8::Local<v8::ArrayBuffer> trig_buffer = v8::ArrayBuffer::New(
reinterpret_cast<v8::Isolate*>(isolate),
- const_cast<double*>(TrigonometricConstants::constants),
+ const_cast<double*>(fdlibm::TrigonometricConstants::constants),
table_num_bytes);
v8::Local<v8::Float64Array> trig_table =
v8::Float64Array::New(trig_buffer, 0, constants_size);
=======================================
--- /branches/bleeding_edge/src/runtime.cc Wed Aug 6 11:39:39 2014 UTC
+++ /branches/bleeding_edge/src/runtime.cc Wed Aug 6 13:45:59 2014 UTC
@@ -7690,7 +7690,7 @@
CONVERT_DOUBLE_ARG_CHECKED(x, 0);
Factory* factory = isolate->factory();
double y[2];
- int n = rempio2(x, y);
+ int n = fdlibm::rempio2(x, y);
Handle<FixedArray> array = factory->NewFixedArray(3);
Handle<HeapNumber> y0 = factory->NewHeapNumber(y[0]);
Handle<HeapNumber> y1 = factory->NewHeapNumber(y[1]);
=======================================
--- /branches/bleeding_edge/third_party/fdlibm/fdlibm.cc Wed Aug 6
11:39:39 2014 UTC
+++ /branches/bleeding_edge/third_party/fdlibm/fdlibm.cc Wed Aug 6
13:45:59 2014 UTC
@@ -20,7 +20,7 @@
namespace v8 {
-namespace internal {
+namespace fdlibm {
#ifdef _MSC_VER
inline double scalbn(double x, int y) { return _scalb(x, y); }
@@ -228,7 +228,7 @@
int rempio2(double x, double* y) {
- int32_t hx = static_cast<int32_t>(double_to_uint64(x) >> 32);
+ int32_t hx = static_cast<int32_t>(internal::double_to_uint64(x) >> 32);
int32_t ix = hx & 0x7fffffff;
if (ix >= 0x7ff00000) {
@@ -237,9 +237,9 @@
}
int32_t e0 = (ix >> 20) - 1046;
- uint64_t zi = double_to_uint64(x) & 0xFFFFFFFFu;
+ uint64_t zi = internal::double_to_uint64(x) & 0xFFFFFFFFu;
zi |= static_cast<uint64_t>(ix - (e0 << 20)) << 32;
- double z = uint64_to_double(zi);
+ double z = internal::uint64_to_double(zi);
double tx[3];
for (int i = 0; i < 2; i++) {
=======================================
--- /branches/bleeding_edge/third_party/fdlibm/fdlibm.h Wed Aug 6 11:39:39
2014 UTC
+++ /branches/bleeding_edge/third_party/fdlibm/fdlibm.h Wed Aug 6 13:45:59
2014 UTC
@@ -17,7 +17,7 @@
#define V8_FDLIBM_H_
namespace v8 {
-namespace internal {
+namespace fdlibm {
int rempio2(double x, double* y);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.