| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 __ Addu(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); | 208 __ Addu(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); |
| 209 __ sw(value, MemOperand(scratch2)); | 209 __ sw(value, MemOperand(scratch2)); |
| 210 | 210 |
| 211 // Update the write barrier. Make sure not to clobber the value. | 211 // Update the write barrier. Make sure not to clobber the value. |
| 212 __ mov(scratch1, value); | 212 __ mov(scratch1, value); |
| 213 __ RecordWrite( | 213 __ RecordWrite( |
| 214 elements, scratch2, scratch1, kRAHasNotBeenSaved, kDontSaveFPRegs); | 214 elements, scratch2, scratch1, kRAHasNotBeenSaved, kDontSaveFPRegs); |
| 215 } | 215 } |
| 216 | 216 |
| 217 | 217 |
| 218 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { | |
| 219 // ----------- S t a t e ------------- | |
| 220 // -- a2 : name | |
| 221 // -- ra : return address | |
| 222 // -- a0 : receiver | |
| 223 // -- sp[0] : receiver | |
| 224 // ----------------------------------- | |
| 225 Label miss; | |
| 226 | |
| 227 StubCompiler::GenerateLoadArrayLength(masm, a0, a3, &miss); | |
| 228 __ bind(&miss); | |
| 229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
| 230 } | |
| 231 | |
| 232 | |
| 233 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | 218 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { |
| 234 // ----------- S t a t e ------------- | 219 // ----------- S t a t e ------------- |
| 235 // -- a2 : name | 220 // -- a2 : name |
| 236 // -- lr : return address | 221 // -- lr : return address |
| 237 // -- a0 : receiver | 222 // -- a0 : receiver |
| 238 // -- sp[0] : receiver | 223 // -- sp[0] : receiver |
| 239 // ----------------------------------- | 224 // ----------------------------------- |
| 240 Label miss; | 225 Label miss; |
| 241 | 226 |
| 242 StubCompiler::GenerateLoadFunctionPrototype(masm, a0, a1, a3, &miss); | 227 StubCompiler::GenerateLoadFunctionPrototype(masm, a0, a1, a3, &miss); |
| (...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 } else { | 1743 } else { |
| 1759 ASSERT(Assembler::IsBne(branch_instr)); | 1744 ASSERT(Assembler::IsBne(branch_instr)); |
| 1760 patcher.ChangeBranchCondition(eq); | 1745 patcher.ChangeBranchCondition(eq); |
| 1761 } | 1746 } |
| 1762 } | 1747 } |
| 1763 | 1748 |
| 1764 | 1749 |
| 1765 } } // namespace v8::internal | 1750 } } // namespace v8::internal |
| 1766 | 1751 |
| 1767 #endif // V8_TARGET_ARCH_MIPS | 1752 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |