Reviewers: Mads Ager,

Description:
Fix null-pointer dereference in the compiler when running without sse3 support.

BUG=77654

Please review this at http://codereview.chromium.org/6731046/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/ia32/lithium-ia32.cc


Index: src/ia32/lithium-ia32.cc
===================================================================
--- src/ia32/lithium-ia32.cc    (revision 7402)
+++ src/ia32/lithium-ia32.cc    (working copy)
@@ -1635,7 +1635,7 @@
       if (needs_check) {
         CpuFeatures* cpu_features = Isolate::Current()->cpu_features();
         LOperand* xmm_temp =
- (instr->CanTruncateToInt32() && !cpu_features->IsSupported(SSE3)) + (instr->CanTruncateToInt32() && cpu_features->IsSupported(SSE3))
             ? NULL
             : FixedTemp(xmm1);
         LTaggedToI* res = new LTaggedToI(value, xmm_temp);


--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to