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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 Label slow, notin; | 439 Label slow, notin; |
440 MemOperand mapped_location = | 440 MemOperand mapped_location = |
441 GenerateMappedArgumentsLookup( | 441 GenerateMappedArgumentsLookup( |
442 masm, receiver, key, a0, a3, a4, ¬in, &slow); | 442 masm, receiver, key, a0, a3, a4, ¬in, &slow); |
443 __ Ret(USE_DELAY_SLOT); | 443 __ Ret(USE_DELAY_SLOT); |
444 __ ld(v0, mapped_location); | 444 __ ld(v0, mapped_location); |
445 __ bind(¬in); | 445 __ bind(¬in); |
446 // The unmapped lookup expects that the parameter map is in a2. | 446 // The unmapped lookup expects that the parameter map is in a2. |
447 MemOperand unmapped_location = | 447 MemOperand unmapped_location = |
448 GenerateUnmappedArgumentsLookup(masm, a0, a0, a3, &slow); | 448 GenerateUnmappedArgumentsLookup(masm, key, a0, a3, &slow); |
449 __ ld(a0, unmapped_location); | 449 __ ld(a0, unmapped_location); |
450 __ LoadRoot(a3, Heap::kTheHoleValueRootIndex); | 450 __ LoadRoot(a3, Heap::kTheHoleValueRootIndex); |
451 __ Branch(&slow, eq, a0, Operand(a3)); | 451 __ Branch(&slow, eq, a0, Operand(a3)); |
452 __ Ret(USE_DELAY_SLOT); | 452 __ Ret(USE_DELAY_SLOT); |
453 __ mov(v0, a0); | 453 __ mov(v0, a0); |
454 __ bind(&slow); | 454 __ bind(&slow); |
455 GenerateMiss(masm); | 455 GenerateMiss(masm); |
456 } | 456 } |
457 | 457 |
458 | 458 |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1260 } else { | 1260 } else { |
1261 ASSERT(Assembler::IsBne(branch_instr)); | 1261 ASSERT(Assembler::IsBne(branch_instr)); |
1262 patcher.ChangeBranchCondition(eq); | 1262 patcher.ChangeBranchCondition(eq); |
1263 } | 1263 } |
1264 } | 1264 } |
1265 | 1265 |
1266 | 1266 |
1267 } } // namespace v8::internal | 1267 } } // namespace v8::internal |
1268 | 1268 |
1269 #endif // V8_TARGET_ARCH_MIPS64 | 1269 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |