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

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

Issue 18595006: MIPS: Implement Polymorphic Store ICs. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 5 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/code-stubs-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698