OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 GenerateMiss(masm); | 332 GenerateMiss(masm); |
333 } | 333 } |
334 | 334 |
335 | 335 |
336 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 336 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
337 // ----------- S t a t e ------------- | 337 // ----------- S t a t e ------------- |
338 // -- a2 : name | 338 // -- a2 : name |
339 // -- lr : return address | 339 // -- lr : return address |
340 // -- a0 : receiver | 340 // -- a0 : receiver |
341 // ----------------------------------- | 341 // ----------------------------------- |
342 Label miss; | 342 Label miss, slow; |
343 | 343 |
344 GenerateNameDictionaryReceiverCheck(masm, a0, a1, a3, t0, &miss); | 344 GenerateNameDictionaryReceiverCheck(masm, a0, a1, a3, t0, &miss); |
345 | 345 |
346 // a1: elements | 346 // a1: elements |
347 GenerateDictionaryLoad(masm, &miss, a1, a2, v0, a3, t0); | 347 GenerateDictionaryLoad(masm, &slow, a1, a2, v0, a3, t0); |
348 __ Ret(); | 348 __ Ret(); |
349 | 349 |
| 350 // Dictionary load failed, go slow (but don't miss). |
| 351 __ bind(&slow); |
| 352 GenerateRuntimeGetProperty(masm); |
| 353 |
350 // Cache miss: Jump to runtime. | 354 // Cache miss: Jump to runtime. |
351 __ bind(&miss); | 355 __ bind(&miss); |
352 GenerateMiss(masm); | 356 GenerateMiss(masm); |
353 } | 357 } |
354 | 358 |
355 | 359 |
356 void LoadIC::GenerateMiss(MacroAssembler* masm) { | 360 void LoadIC::GenerateMiss(MacroAssembler* masm) { |
357 // ----------- S t a t e ------------- | 361 // ----------- S t a t e ------------- |
358 // -- a2 : name | 362 // -- a2 : name |
359 // -- ra : return address | 363 // -- ra : return address |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 } else { | 1331 } else { |
1328 ASSERT(Assembler::IsBne(branch_instr)); | 1332 ASSERT(Assembler::IsBne(branch_instr)); |
1329 patcher.ChangeBranchCondition(eq); | 1333 patcher.ChangeBranchCondition(eq); |
1330 } | 1334 } |
1331 } | 1335 } |
1332 | 1336 |
1333 | 1337 |
1334 } } // namespace v8::internal | 1338 } } // namespace v8::internal |
1335 | 1339 |
1336 #endif // V8_TARGET_ARCH_MIPS | 1340 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |