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

BUG=77654
Review URL: http://codereview.chromium.org/6731046

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7408 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ea719065
...@@ -1635,7 +1635,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { ...@@ -1635,7 +1635,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
if (needs_check) { if (needs_check) {
CpuFeatures* cpu_features = Isolate::Current()->cpu_features(); CpuFeatures* cpu_features = Isolate::Current()->cpu_features();
LOperand* xmm_temp = LOperand* xmm_temp =
(instr->CanTruncateToInt32() && !cpu_features->IsSupported(SSE3)) (instr->CanTruncateToInt32() && cpu_features->IsSupported(SSE3))
? NULL ? NULL
: FixedTemp(xmm1); : FixedTemp(xmm1);
LTaggedToI* res = new LTaggedToI(value, xmm_temp); LTaggedToI* res = new LTaggedToI(value, xmm_temp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment