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
This commit is contained in:
parent
ea7190657e
commit
770df67e16
@ -1635,7 +1635,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user