OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 4422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4433 DeoptimizeIf(al, instr->environment()); | 4433 DeoptimizeIf(al, instr->environment()); |
4434 __ bind(&no_memento_found); | 4434 __ bind(&no_memento_found); |
4435 } | 4435 } |
4436 | 4436 |
4437 | 4437 |
4438 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4438 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
4439 ASSERT(ToRegister(instr->context()).is(cp)); | 4439 ASSERT(ToRegister(instr->context()).is(cp)); |
4440 ASSERT(ToRegister(instr->left()).is(a1)); | 4440 ASSERT(ToRegister(instr->left()).is(a1)); |
4441 ASSERT(ToRegister(instr->right()).is(a0)); | 4441 ASSERT(ToRegister(instr->right()).is(a0)); |
4442 StringAddStub stub(instr->hydrogen()->flags(), | 4442 StringAddStub stub(instr->hydrogen()->flags(), |
4443 isolate()->heap()->GetPretenureMode()); | 4443 instr->hydrogen()->pretenure_flag()); |
4444 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4444 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
4445 } | 4445 } |
4446 | 4446 |
4447 | 4447 |
4448 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4448 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
4449 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4449 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
4450 public: | 4450 public: |
4451 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 4451 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
4452 : LDeferredCode(codegen), instr_(instr) { } | 4452 : LDeferredCode(codegen), instr_(instr) { } |
4453 virtual void Generate() V8_OVERRIDE { | 4453 virtual void Generate() V8_OVERRIDE { |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5808 __ Subu(scratch, result, scratch); | 5808 __ Subu(scratch, result, scratch); |
5809 __ lw(result, FieldMemOperand(scratch, | 5809 __ lw(result, FieldMemOperand(scratch, |
5810 FixedArray::kHeaderSize - kPointerSize)); | 5810 FixedArray::kHeaderSize - kPointerSize)); |
5811 __ bind(&done); | 5811 __ bind(&done); |
5812 } | 5812 } |
5813 | 5813 |
5814 | 5814 |
5815 #undef __ | 5815 #undef __ |
5816 | 5816 |
5817 } } // namespace v8::internal | 5817 } } // namespace v8::internal |
OLD | NEW |