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

Unified Diff: src/api.cc

Issue 6685073: Remember and reuse derived map for external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix formatting Created 9 years, 9 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 | « no previous file | src/bootstrapper.cc » ('j') | src/objects.cc » ('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 26d2246aaea0c01ae2733b160961174834cb0058..d7f5246e9104423aaf27bb60f7bf4312a8a969dc 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -2775,8 +2775,8 @@ void PrepareExternalArrayElements(i::Handle<i::JSObject> object,
elements->map() != i::Heap::MapForExternalArrayType(array_type);
if (force_unique_map) {
i::Handle<i::Map> external_array_map =
- i::Factory::NewExternalArrayElementsMap(
- i::Handle<i::Map>(object->map()));
+ i::Factory::GetExternalArrayElementsMap(
+ i::Handle<i::Map>(object->map()), array_type);
object->set_map(*external_array_map);
}
object->set_elements(*array);
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698