| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2306 __ VFPCompareAndSetFlags(dbl_scratch, 0.0); | 2306 __ VFPCompareAndSetFlags(dbl_scratch, 0.0); |
| 2307 __ cmp(r0, r0, vs); // NaN -> false. | 2307 __ cmp(r0, r0, vs); // NaN -> false. |
| 2308 __ b(eq, instr->FalseLabel(chunk_)); // +0, -0 -> false. | 2308 __ b(eq, instr->FalseLabel(chunk_)); // +0, -0 -> false. |
| 2309 __ b(instr->TrueLabel(chunk_)); | 2309 __ b(instr->TrueLabel(chunk_)); |
| 2310 __ bind(¬_heap_number); | 2310 __ bind(¬_heap_number); |
| 2311 } | 2311 } |
| 2312 | 2312 |
| 2313 if (!expected.IsGeneric()) { | 2313 if (!expected.IsGeneric()) { |
| 2314 // We've seen something for the first time -> deopt. | 2314 // We've seen something for the first time -> deopt. |
| 2315 // This can only happen if we are not generic already. | 2315 // This can only happen if we are not generic already. |
| 2316 DeoptimizeIf(al, instr->environment()); | 2316 if (!info()->IsStub()) { |
| 2317 SoftDeoptimize(instr->environment()); |
| 2318 } else { |
| 2319 DeoptimizeIf(al, instr->environment()); |
| 2320 } |
| 2317 } | 2321 } |
| 2318 } | 2322 } |
| 2319 } | 2323 } |
| 2320 } | 2324 } |
| 2321 | 2325 |
| 2322 | 2326 |
| 2323 void LCodeGen::EmitGoto(int block) { | 2327 void LCodeGen::EmitGoto(int block) { |
| 2324 if (!IsNextEmittedBlock(block)) { | 2328 if (!IsNextEmittedBlock(block)) { |
| 2325 __ jmp(chunk_->GetAssemblyLabel(LookupDestination(block))); | 2329 __ jmp(chunk_->GetAssemblyLabel(LookupDestination(block))); |
| 2326 } | 2330 } |
| (...skipping 3597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5924 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5928 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5925 __ ldr(result, FieldMemOperand(scratch, | 5929 __ ldr(result, FieldMemOperand(scratch, |
| 5926 FixedArray::kHeaderSize - kPointerSize)); | 5930 FixedArray::kHeaderSize - kPointerSize)); |
| 5927 __ bind(&done); | 5931 __ bind(&done); |
| 5928 } | 5932 } |
| 5929 | 5933 |
| 5930 | 5934 |
| 5931 #undef __ | 5935 #undef __ |
| 5932 | 5936 |
| 5933 } } // namespace v8::internal | 5937 } } // namespace v8::internal |
| OLD | NEW |