| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/arm/assembler-arm.h" | 9 #include "src/arm/assembler-arm.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 GenerateMiss(masm); | 326 GenerateMiss(masm); |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 330 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| 331 // ----------- S t a t e ------------- | 331 // ----------- S t a t e ------------- |
| 332 // -- r2 : name | 332 // -- r2 : name |
| 333 // -- lr : return address | 333 // -- lr : return address |
| 334 // -- r0 : receiver | 334 // -- r0 : receiver |
| 335 // ----------------------------------- | 335 // ----------------------------------- |
| 336 Label miss; | 336 Label miss, slow; |
| 337 | 337 |
| 338 GenerateNameDictionaryReceiverCheck(masm, r0, r1, r3, r4, &miss); | 338 GenerateNameDictionaryReceiverCheck(masm, r0, r1, r3, r4, &miss); |
| 339 | 339 |
| 340 // r1: elements | 340 // r1: elements |
| 341 GenerateDictionaryLoad(masm, &miss, r1, r2, r0, r3, r4); | 341 GenerateDictionaryLoad(masm, &slow, r1, r2, r0, r3, r4); |
| 342 __ Ret(); | 342 __ Ret(); |
| 343 | 343 |
| 344 // Dictionary load failed, go slow (but don't miss). |
| 345 __ bind(&slow); |
| 346 GenerateRuntimeGetProperty(masm); |
| 347 |
| 344 // Cache miss: Jump to runtime. | 348 // Cache miss: Jump to runtime. |
| 345 __ bind(&miss); | 349 __ bind(&miss); |
| 346 GenerateMiss(masm); | 350 GenerateMiss(masm); |
| 347 } | 351 } |
| 348 | 352 |
| 349 | 353 |
| 350 void LoadIC::GenerateMiss(MacroAssembler* masm) { | 354 void LoadIC::GenerateMiss(MacroAssembler* masm) { |
| 351 // ----------- S t a t e ------------- | 355 // ----------- S t a t e ------------- |
| 352 // -- r2 : name | 356 // -- r2 : name |
| 353 // -- lr : return address | 357 // -- lr : return address |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 } else { | 1312 } else { |
| 1309 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1313 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
| 1310 patcher.EmitCondition(eq); | 1314 patcher.EmitCondition(eq); |
| 1311 } | 1315 } |
| 1312 } | 1316 } |
| 1313 | 1317 |
| 1314 | 1318 |
| 1315 } } // namespace v8::internal | 1319 } } // namespace v8::internal |
| 1316 | 1320 |
| 1317 #endif // V8_TARGET_ARCH_ARM | 1321 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |