| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 0344ee1d9c9c4508bfb83cf102dd00667d264ee7..25247ea4e05dff49021577576d7956b380957a8c 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -13,8 +13,8 @@
|
| #include "src/extensions/trigger-failure-extension.h"
|
| #include "src/isolate-inl.h"
|
| #include "src/natives.h"
|
| +#include "src/rempio2.h"
|
| #include "src/snapshot.h"
|
| -#include "src/trig-table.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -2627,43 +2627,17 @@ Genesis::Genesis(Isolate* isolate,
|
| NONE).Assert();
|
|
|
| // Initialize trigonometric lookup tables and constants.
|
| - const int table_num_bytes = TrigonometricLookupTable::table_num_bytes();
|
| - v8::Local<v8::ArrayBuffer> sin_buffer = v8::ArrayBuffer::New(
|
| + const int table_num_bytes = TrigonometricConstants::kSize * kDoubleSize;
|
| + v8::Local<v8::ArrayBuffer> trig_buffer = v8::ArrayBuffer::New(
|
| reinterpret_cast<v8::Isolate*>(isolate),
|
| - TrigonometricLookupTable::sin_table(), table_num_bytes);
|
| - v8::Local<v8::ArrayBuffer> cos_buffer = v8::ArrayBuffer::New(
|
| - reinterpret_cast<v8::Isolate*>(isolate),
|
| - TrigonometricLookupTable::cos_x_interval_table(), table_num_bytes);
|
| - v8::Local<v8::Float64Array> sin_table = v8::Float64Array::New(
|
| - sin_buffer, 0, TrigonometricLookupTable::table_size());
|
| - v8::Local<v8::Float64Array> cos_table = v8::Float64Array::New(
|
| - cos_buffer, 0, TrigonometricLookupTable::table_size());
|
| + TrigonometricConstants::constants(), table_num_bytes);
|
| + v8::Local<v8::Float64Array> trig_table =
|
| + v8::Float64Array::New(trig_buffer, 0, TrigonometricConstants::kSize);
|
|
|
| - Runtime::DefineObjectProperty(builtins,
|
| - factory()->InternalizeOneByteString(
|
| - STATIC_ASCII_VECTOR("kSinTable")),
|
| - Utils::OpenHandle(*sin_table),
|
| - NONE).Assert();
|
| - Runtime::DefineObjectProperty(
|
| - builtins,
|
| - factory()->InternalizeOneByteString(
|
| - STATIC_ASCII_VECTOR("kCosXIntervalTable")),
|
| - Utils::OpenHandle(*cos_table),
|
| - NONE).Assert();
|
| - Runtime::DefineObjectProperty(
|
| - builtins,
|
| - factory()->InternalizeOneByteString(
|
| - STATIC_ASCII_VECTOR("kSamples")),
|
| - factory()->NewHeapNumber(
|
| - TrigonometricLookupTable::samples()),
|
| - NONE).Assert();
|
| Runtime::DefineObjectProperty(
|
| builtins,
|
| - factory()->InternalizeOneByteString(
|
| - STATIC_ASCII_VECTOR("kIndexConvert")),
|
| - factory()->NewHeapNumber(
|
| - TrigonometricLookupTable::samples_over_pi_half()),
|
| - NONE).Assert();
|
| + factory()->InternalizeOneByteString(STATIC_ASCII_VECTOR("kTrig")),
|
| + Utils::OpenHandle(*trig_table), NONE).Assert();
|
| }
|
|
|
| result_ = native_context();
|
|
|