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 4446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4457 UNREACHABLE(); | 4457 UNREACHABLE(); |
4458 } | 4458 } |
4459 __ bind(¬_applicable); | 4459 __ bind(¬_applicable); |
4460 } | 4460 } |
4461 | 4461 |
4462 | 4462 |
4463 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4463 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4464 Register object = ToRegister(instr->object()); | 4464 Register object = ToRegister(instr->object()); |
4465 Register temp = ToRegister(instr->temp()); | 4465 Register temp = ToRegister(instr->temp()); |
4466 Label fail; | 4466 Label fail; |
4467 __ TestJSArrayForAllocationSiteInfo(object, temp, ne, &fail); | 4467 __ TestJSArrayForAllocationMemento(object, temp, ne, &fail); |
4468 DeoptimizeIf(al, instr->environment()); | 4468 DeoptimizeIf(al, instr->environment()); |
4469 __ bind(&fail); | 4469 __ bind(&fail); |
4470 } | 4470 } |
4471 | 4471 |
4472 | 4472 |
4473 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4473 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4474 __ push(ToRegister(instr->left())); | 4474 __ push(ToRegister(instr->left())); |
4475 __ push(ToRegister(instr->right())); | 4475 __ push(ToRegister(instr->right())); |
4476 StringAddStub stub(instr->hydrogen()->flags()); | 4476 StringAddStub stub(instr->hydrogen()->flags()); |
4477 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4477 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5802 __ Subu(scratch, result, scratch); | 5802 __ Subu(scratch, result, scratch); |
5803 __ lw(result, FieldMemOperand(scratch, | 5803 __ lw(result, FieldMemOperand(scratch, |
5804 FixedArray::kHeaderSize - kPointerSize)); | 5804 FixedArray::kHeaderSize - kPointerSize)); |
5805 __ bind(&done); | 5805 __ bind(&done); |
5806 } | 5806 } |
5807 | 5807 |
5808 | 5808 |
5809 #undef __ | 5809 #undef __ |
5810 | 5810 |
5811 } } // namespace v8::internal | 5811 } } // namespace v8::internal |
OLD | NEW |