Reviewers: rossberg, bbudge,
Message:
Andreas: PTAL.
Bill: FYI.
Description:
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 undefined code. I guess we accidentally SIMD.
[email protected]
Please review this at https://codereview.chromium.org/1240223002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+2, -0 lines):
M src/bootstrapper.cc
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index
350e7184bcebe00fa6c94f93fdc119a03917fbdb..c729d815ab8cb8ddb6b3152b380fbff80ae96549
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<JSGlobalObject> global(
JSGlobalObject::cast(native_context()->global_object()));
Isolate* isolate = global->GetIsolate();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.