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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // -- sp[0] : receiver | 223 // -- sp[0] : receiver |
224 // ----------------------------------- | 224 // ----------------------------------- |
225 Label miss; | 225 Label miss; |
226 | 226 |
227 StubCompiler::GenerateLoadArrayLength(masm, a0, a3, &miss); | 227 StubCompiler::GenerateLoadArrayLength(masm, a0, a3, &miss); |
228 __ bind(&miss); | 228 __ bind(&miss); |
229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | 229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); |
230 } | 230 } |
231 | 231 |
232 | 232 |
233 void LoadIC::GenerateStringLength(MacroAssembler* masm, bool support_wrappers) { | |
234 // ----------- S t a t e ------------- | |
235 // -- a2 : name | |
236 // -- lr : return address | |
237 // -- a0 : receiver | |
238 // -- sp[0] : receiver | |
239 // ----------------------------------- | |
240 Label miss; | |
241 | |
242 StubCompiler::GenerateLoadStringLength(masm, a0, a1, a3, &miss, | |
243 support_wrappers); | |
244 // Cache miss: Jump to runtime. | |
245 __ bind(&miss); | |
246 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
247 } | |
248 | |
249 | |
250 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | 233 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { |
251 // ----------- S t a t e ------------- | 234 // ----------- S t a t e ------------- |
252 // -- a2 : name | 235 // -- a2 : name |
253 // -- lr : return address | 236 // -- lr : return address |
254 // -- a0 : receiver | 237 // -- a0 : receiver |
255 // -- sp[0] : receiver | 238 // -- sp[0] : receiver |
256 // ----------------------------------- | 239 // ----------------------------------- |
257 Label miss; | 240 Label miss; |
258 | 241 |
259 StubCompiler::GenerateLoadFunctionPrototype(masm, a0, a1, a3, &miss); | 242 StubCompiler::GenerateLoadFunctionPrototype(masm, a0, a1, a3, &miss); |
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 } else { | 1758 } else { |
1776 ASSERT(Assembler::IsBne(branch_instr)); | 1759 ASSERT(Assembler::IsBne(branch_instr)); |
1777 patcher.ChangeBranchCondition(eq); | 1760 patcher.ChangeBranchCondition(eq); |
1778 } | 1761 } |
1779 } | 1762 } |
1780 | 1763 |
1781 | 1764 |
1782 } } // namespace v8::internal | 1765 } } // namespace v8::internal |
1783 | 1766 |
1784 #endif // V8_TARGET_ARCH_MIPS | 1767 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |