Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 71b61e6b52c573e4f64ea64926dee37a9d4c3b0b..561f7e094458258a8ab7001cd0b0da6e3c510c8d 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -235,11 +235,8 @@ class Genesis BASE_EMBEDDED { |
ElementsKind elements_kind); |
bool InstallNatives(ContextType context_type); |
- void InstallTypedArray( |
- const char* name, |
- ElementsKind elements_kind, |
- Handle<JSFunction>* fun, |
- Handle<Map>* external_map); |
+ void InstallTypedArray(const char* name, ElementsKind elements_kind, |
+ Handle<JSFunction>* fun); |
bool InstallExperimentalNatives(); |
bool InstallExtraNatives(); |
void InstallBuiltinFunctionIds(); |
@@ -1284,17 +1281,12 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
} |
{ // -- T y p e d A r r a y s |
-#define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ |
- { \ |
- Handle<JSFunction> fun; \ |
- Handle<Map> external_map; \ |
- InstallTypedArray(#Type "Array", \ |
- TYPE##_ELEMENTS, \ |
- &fun, \ |
- &external_map); \ |
- native_context()->set_##type##_array_fun(*fun); \ |
- native_context()->set_##type##_array_external_map(*external_map); \ |
- } |
+#define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ |
+ { \ |
+ Handle<JSFunction> fun; \ |
+ InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ |
+ native_context()->set_##type##_array_fun(*fun); \ |
+ } |
TYPED_ARRAYS(INSTALL_TYPED_ARRAY) |
#undef INSTALL_TYPED_ARRAY |
@@ -1505,11 +1497,8 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
} |
-void Genesis::InstallTypedArray( |
- const char* name, |
- ElementsKind elements_kind, |
- Handle<JSFunction>* fun, |
- Handle<Map>* external_map) { |
+void Genesis::InstallTypedArray(const char* name, ElementsKind elements_kind, |
+ Handle<JSFunction>* fun) { |
Handle<JSObject> global = Handle<JSObject>(native_context()->global_object()); |
Handle<JSFunction> result = InstallFunction( |
global, name, JS_TYPED_ARRAY_TYPE, JSTypedArray::kSize, |
@@ -1522,9 +1511,6 @@ void Genesis::InstallTypedArray( |
JSFunction::SetInitialMap(result, initial_map, |
handle(initial_map->prototype(), isolate())); |
*fun = result; |
- |
- ElementsKind external_kind = GetNextTransitionElementsKind(elements_kind); |
- *external_map = Map::AsElementsKind(initial_map, external_kind); |
} |