From d4cd3f5ef32356be6717f6957933a354f18219e8 Mon Sep 17 00:00:00 2001 From: mstarzinger Date: Mon, 20 Jul 2015 03:37:43 -0700 Subject: [PATCH] Fix installing of SIMD object on global object. We should not install the SIMD object on the global object unless support for SIMD is actually turned on by the flag. Otherwise calling SIMD.Float32x4() will hit unreachable code. We accidentally SIMD. R=rossberg@chromium.org Review URL: https://codereview.chromium.org/1240223002 Cr-Commit-Position: refs/heads/master@{#29749} --- src/bootstrapper.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index 350e718..c729d81 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -1987,6 +1987,8 @@ void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { void Genesis::InitializeGlobal_harmony_simd() { + if (!FLAG_harmony_simd) return; + Handle global( JSGlobalObject::cast(native_context()->global_object())); Isolate* isolate = global->GetIsolate(); -- 2.7.4