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

Unified Diff: src/api.cc

Issue 15172003: Preallocate transitioned maps for TypedArrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months 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 | « include/v8.h ('k') | src/bootstrapper.cc » ('j') | src/heap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 8a6eaf4765a6119b1cf1ee6bad92cf631e84ef9c..f0505cda4fbe4074a6190f280bc2f13e364c6795 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -5953,10 +5953,6 @@ i::Handle<i::JSTypedArray> NewTypedArray(
isolate->factory()->NewExternalArray(
static_cast<int>(length), array_type,
static_cast<uint8_t*>(buffer->backing_store()) + byte_offset);
- i::Handle<i::Map> map =
- isolate->factory()->GetElementsTransitionMap(
- obj, elements_kind);
- obj->set_map(*map);
obj->set_elements(*elements);
return obj;
}
« no previous file with comments | « include/v8.h ('k') | src/bootstrapper.cc » ('j') | src/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698