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

Unified Diff: src/bootstrapper.cc

Issue 1464303002: Implement xorshift128+ for Math.random. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add missing include Created 5 years, 1 month 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/base/utils/random-number-generator.cc ('k') | src/js/math.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index afc25508e62bdd4b6fd6291409e38608a8687d12..e91462e027f1542389313733cdca84998b78a4f5 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1729,24 +1729,6 @@ static Handle<JSObject> ResolveBuiltinIdHolder(Handle<Context> native_context,
}
-template <typename Data>
-Handle<JSTypedArray> CreateTypedArray(Isolate* isolate, ExternalArrayType type,
- size_t num_elements, Data** data) {
- size_t byte_length = num_elements * sizeof(**data);
- Handle<JSArrayBuffer> buffer =
- isolate->factory()->NewJSArrayBuffer(SharedFlag::kNotShared, TENURED);
- bool is_external = (*data != nullptr);
- if (!is_external) {
- *data = reinterpret_cast<Data*>(
- isolate->array_buffer_allocator()->Allocate(byte_length));
- }
- JSArrayBuffer::Setup(buffer, isolate, is_external, *data, byte_length,
- SharedFlag::kNotShared);
- return isolate->factory()->NewJSTypedArray(type, buffer, 0, num_elements,
- TENURED);
-}
-
-
void Genesis::ConfigureUtilsObject(ContextType context_type) {
switch (context_type) {
// We still need the utils object to find debug functions.
« no previous file with comments | « src/base/utils/random-number-generator.cc ('k') | src/js/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698