| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 660a76e2ecb4aa1fabd95b589063c327b494f4d6..355e8cac6cb83977b1211e9e3385be39492b266b 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2655,7 +2655,8 @@ Genesis::Genesis(Isolate* isolate,
|
| isolate->random_number_generator()->NextBytes(state, num_bytes);
|
| } while (state[0] == 0 || state[1] == 0);
|
|
|
| - v8::Local<v8::ArrayBuffer> buffer = v8::ArrayBuffer::New(state, num_bytes);
|
| + v8::Local<v8::ArrayBuffer> buffer = v8::ArrayBuffer::New(
|
| + reinterpret_cast<v8::Isolate*>(isolate), state, num_bytes);
|
| Utils::OpenHandle(*buffer)->set_should_be_freed(true);
|
| v8::Local<v8::Uint32Array> ta = v8::Uint32Array::New(buffer, 0, num_elems);
|
| Handle<JSBuiltinsObject> builtins(native_context()->builtins());
|
| @@ -2668,8 +2669,10 @@ Genesis::Genesis(Isolate* isolate,
|
| // Initialize trigonometric lookup tables and constants.
|
| const int table_num_bytes = TrigonometricLookupTable::table_num_bytes();
|
| v8::Local<v8::ArrayBuffer> sin_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());
|
|
|