From: mstarzinger Date: Mon, 20 Jul 2015 10:37:43 +0000 (-0700) Subject: Fix installing of SIMD object on global object. X-Git-Tag: upstream/4.7.83~1291 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4cd3f5ef32356be6717f6957933a354f18219e8;p=platform%2Fupstream%2Fv8.git 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} --- 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();