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

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

Issue 14142005: Implement Polymorphic Store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/stub-cache-arm.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 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1524 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1525 StrictModeFlag strict_mode) { 1525 StrictModeFlag strict_mode) {
1526 // ----------- S t a t e ------------- 1526 // ----------- S t a t e -------------
1527 // -- r0 : value 1527 // -- r0 : value
1528 // -- r1 : receiver 1528 // -- r1 : receiver
1529 // -- r2 : name 1529 // -- r2 : name
1530 // -- lr : return address 1530 // -- lr : return address
1531 // ----------------------------------- 1531 // -----------------------------------
1532 1532
1533 // Get the receiver from the stack and probe the stub cache. 1533 // Get the receiver from the stack and probe the stub cache.
1534 Code::Flags flags = 1534 Code::Flags flags = Code::ComputeFlags(
1535 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode); 1535 Code::STUB, MONOMORPHIC, strict_mode,
1536 Code::NORMAL, Code::STORE_IC);
1536 1537
1537 Isolate::Current()->stub_cache()->GenerateProbe( 1538 Isolate::Current()->stub_cache()->GenerateProbe(
1538 masm, flags, r1, r2, r3, r4, r5, r6); 1539 masm, flags, r1, r2, r3, r4, r5, r6);
1539 1540
1540 // Cache miss: Jump to runtime. 1541 // Cache miss: Jump to runtime.
1541 GenerateMiss(masm); 1542 GenerateMiss(masm);
1542 } 1543 }
1543 1544
1544 1545
1545 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1546 void StoreIC::GenerateMiss(MacroAssembler* masm) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 } else { 1698 } else {
1698 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1699 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1699 patcher.EmitCondition(eq); 1700 patcher.EmitCondition(eq);
1700 } 1701 }
1701 } 1702 }
1702 1703
1703 1704
1704 } } // namespace v8::internal 1705 } } // namespace v8::internal
1705 1706
1706 #endif // V8_TARGET_ARCH_ARM 1707 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698