Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 380c81e13abd608c17ff3aa7e6fbdfa7fc94d4c8..f57a1f6fd8fb69cbb3ac633382283fa7e6556486 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1311,6 +1311,16 @@ void Genesis::InitializeExperimentalGlobal() { |
prototype, Builtins::kIllegal, true); |
} |
} |
+ |
+ if (FLAG_harmony_typed_arrays) { |
+ { // -- A r r a y B u f f e r |
+ Handle<JSObject> prototype = |
+ factory()->NewJSObject(isolate()->object_function(), TENURED); |
+ InstallFunction(global, "__ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
+ JSArrayBuffer::kSize, prototype, |
+ Builtins::kIllegal, true); |
+ } |
+ } |
} |
@@ -1918,6 +1928,11 @@ bool Genesis::InstallExperimentalNatives() { |
"native object-observe.js") == 0) { |
if (!CompileExperimentalBuiltin(isolate(), i)) return false; |
} |
+ if (FLAG_harmony_typed_arrays && |
+ strcmp(ExperimentalNatives::GetScriptName(i).start(), |
+ "native typedarray.js") == 0) { |
+ if (!CompileExperimentalBuiltin(isolate(), i)) return false; |
+ } |
} |
InstallExperimentalNativeFunctions(); |