Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/mips/ic-mips.cc

Issue 7888004: MIPS: pre-crankshaft updates to macro-assembler and related files. (2/3) (Closed)
Patch Set: removed code-patching, cache-flushing per review comments. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 } 1565 }
1566 1566
1567 1567
1568 void PatchInlinedSmiCode(Address address) { 1568 void PatchInlinedSmiCode(Address address) {
1569 Address andi_instruction_address = 1569 Address andi_instruction_address =
1570 address + Assembler::kCallTargetAddressOffset; 1570 address + Assembler::kCallTargetAddressOffset;
1571 1571
1572 // If the instruction following the call is not a andi at, rx, #yyy, nothing 1572 // If the instruction following the call is not a andi at, rx, #yyy, nothing
1573 // was inlined. 1573 // was inlined.
1574 Instr instr = Assembler::instr_at(andi_instruction_address); 1574 Instr instr = Assembler::instr_at(andi_instruction_address);
1575 if (!Assembler::IsAndImmediate(instr)) { 1575 if (!(Assembler::IsAndImmediate(instr) &&
1576 Assembler::GetRt(instr) == (uint32_t)zero_reg.code())) {
1576 return; 1577 return;
1577 } 1578 }
1578 1579
1579 // The delta to the start of the map check instruction and the 1580 // The delta to the start of the map check instruction and the
1580 // condition code uses at the patched jump. 1581 // condition code uses at the patched jump.
1581 int delta = Assembler::GetImmediate16(instr); 1582 int delta = Assembler::GetImmediate16(instr);
1582 delta += Assembler::GetRs(instr) * kImm16Mask; 1583 delta += Assembler::GetRs(instr) * kImm16Mask;
1583 // If the delta is 0 the instruction is andi at, zero_reg, #0 which also 1584 // If the delta is 0 the instruction is andi at, zero_reg, #0 which also
1584 // signals that nothing was inlined. 1585 // signals that nothing was inlined.
1585 if (delta == 0) { 1586 if (delta == 0) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch)); 1627 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch));
1627 patcher.masm()->andi(at, reg, kSmiTagMask); 1628 patcher.masm()->andi(at, reg, kSmiTagMask);
1628 patcher.ChangeBranchCondition(eq); 1629 patcher.ChangeBranchCondition(eq);
1629 } 1630 }
1630 } 1631 }
1631 1632
1632 1633
1633 } } // namespace v8::internal 1634 } } // namespace v8::internal
1634 1635
1635 #endif // V8_TARGET_ARCH_MIPS 1636 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698