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 4448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4459 RecordSafepointWithRegistersAndDoubles( | 4459 RecordSafepointWithRegistersAndDoubles( |
4460 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); | 4460 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
4461 } | 4461 } |
4462 __ bind(¬_applicable); | 4462 __ bind(¬_applicable); |
4463 } | 4463 } |
4464 | 4464 |
4465 | 4465 |
4466 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4466 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4467 Register object = ToRegister(instr->object()); | 4467 Register object = ToRegister(instr->object()); |
4468 Register temp = ToRegister(instr->temp()); | 4468 Register temp = ToRegister(instr->temp()); |
4469 Label fail; | 4469 Label no_memento_found; |
4470 __ TestJSArrayForAllocationMemento(object, temp, ne, &fail); | 4470 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found, |
| 4471 ne, &no_memento_found); |
4471 DeoptimizeIf(al, instr->environment()); | 4472 DeoptimizeIf(al, instr->environment()); |
4472 __ bind(&fail); | 4473 __ bind(&no_memento_found); |
4473 } | 4474 } |
4474 | 4475 |
4475 | 4476 |
4476 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4477 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4477 ASSERT(ToRegister(instr->context()).is(cp)); | 4478 ASSERT(ToRegister(instr->context()).is(cp)); |
4478 __ push(ToRegister(instr->left())); | 4479 __ push(ToRegister(instr->left())); |
4479 __ push(ToRegister(instr->right())); | 4480 __ push(ToRegister(instr->right())); |
4480 StringAddStub stub(instr->hydrogen()->flags()); | 4481 StringAddStub stub(instr->hydrogen()->flags()); |
4481 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4482 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4482 } | 4483 } |
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5825 __ Subu(scratch, result, scratch); | 5826 __ Subu(scratch, result, scratch); |
5826 __ lw(result, FieldMemOperand(scratch, | 5827 __ lw(result, FieldMemOperand(scratch, |
5827 FixedArray::kHeaderSize - kPointerSize)); | 5828 FixedArray::kHeaderSize - kPointerSize)); |
5828 __ bind(&done); | 5829 __ bind(&done); |
5829 } | 5830 } |
5830 | 5831 |
5831 | 5832 |
5832 #undef __ | 5833 #undef __ |
5833 | 5834 |
5834 } } // namespace v8::internal | 5835 } } // namespace v8::internal |
OLD | NEW |