| 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 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, | 1534 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, |
| 1535 StrictModeFlag strict_mode) { | 1535 StrictModeFlag strict_mode) { |
| 1536 // ----------- S t a t e ------------- | 1536 // ----------- S t a t e ------------- |
| 1537 // -- a0 : value | 1537 // -- a0 : value |
| 1538 // -- a1 : receiver | 1538 // -- a1 : receiver |
| 1539 // -- a2 : name | 1539 // -- a2 : name |
| 1540 // -- ra : return address | 1540 // -- ra : return address |
| 1541 // ----------------------------------- | 1541 // ----------------------------------- |
| 1542 | 1542 |
| 1543 // Get the receiver from the stack and probe the stub cache. | 1543 // Get the receiver from the stack and probe the stub cache. |
| 1544 Code::Flags flags = | 1544 Code::Flags flags = Code::ComputeFlags( |
| 1545 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode); | 1545 Code::STUB, MONOMORPHIC, strict_mode, |
| 1546 Code::NORMAL, Code::STORE_IC); |
| 1546 Isolate::Current()->stub_cache()->GenerateProbe( | 1547 Isolate::Current()->stub_cache()->GenerateProbe( |
| 1547 masm, flags, a1, a2, a3, t0, t1, t2); | 1548 masm, flags, a1, a2, a3, t0, t1, t2); |
| 1548 | 1549 |
| 1549 // Cache miss: Jump to runtime. | 1550 // Cache miss: Jump to runtime. |
| 1550 GenerateMiss(masm); | 1551 GenerateMiss(masm); |
| 1551 } | 1552 } |
| 1552 | 1553 |
| 1553 | 1554 |
| 1554 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 1555 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| 1555 // ----------- S t a t e ------------- | 1556 // ----------- S t a t e ------------- |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 } else { | 1705 } else { |
| 1705 ASSERT(Assembler::IsBne(branch_instr)); | 1706 ASSERT(Assembler::IsBne(branch_instr)); |
| 1706 patcher.ChangeBranchCondition(eq); | 1707 patcher.ChangeBranchCondition(eq); |
| 1707 } | 1708 } |
| 1708 } | 1709 } |
| 1709 | 1710 |
| 1710 | 1711 |
| 1711 } } // namespace v8::internal | 1712 } } // namespace v8::internal |
| 1712 | 1713 |
| 1713 #endif // V8_TARGET_ARCH_MIPS | 1714 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |