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 4487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4498 DeoptimizeIf(eq, instr->environment()); | 4498 DeoptimizeIf(eq, instr->environment()); |
4499 __ bind(&no_memento_found); | 4499 __ bind(&no_memento_found); |
4500 } | 4500 } |
4501 | 4501 |
4502 | 4502 |
4503 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4503 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4504 ASSERT(ToRegister(instr->context()).is(cp)); | 4504 ASSERT(ToRegister(instr->context()).is(cp)); |
4505 ASSERT(ToRegister(instr->left()).is(r1)); | 4505 ASSERT(ToRegister(instr->left()).is(r1)); |
4506 ASSERT(ToRegister(instr->right()).is(r0)); | 4506 ASSERT(ToRegister(instr->right()).is(r0)); |
4507 StringAddStub stub(instr->hydrogen()->flags(), | 4507 StringAddStub stub(instr->hydrogen()->flags(), |
4508 isolate()->heap()->GetPretenureMode()); | 4508 instr->hydrogen()->pretenure_flag()); |
4509 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4509 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4510 } | 4510 } |
4511 | 4511 |
4512 | 4512 |
4513 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4513 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
4514 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4514 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
4515 public: | 4515 public: |
4516 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 4516 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
4517 : LDeferredCode(codegen), instr_(instr) { } | 4517 : LDeferredCode(codegen), instr_(instr) { } |
4518 virtual void Generate() V8_OVERRIDE { | 4518 virtual void Generate() V8_OVERRIDE { |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5819 __ ldr(result, FieldMemOperand(scratch, | 5819 __ ldr(result, FieldMemOperand(scratch, |
5820 FixedArray::kHeaderSize - kPointerSize)); | 5820 FixedArray::kHeaderSize - kPointerSize)); |
5821 __ bind(&done); | 5821 __ bind(&done); |
5822 } | 5822 } |
5823 | 5823 |
5824 | 5824 |
5825 #undef __ | 5825 #undef __ |
5826 | 5826 |
5827 } } // namespace v8::internal | 5827 } } // namespace v8::internal |
OLD | NEW |