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

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

Issue 1780010: Fix keyed load inlining after my last commit accidentally (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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/codegen-arm.cc ('k') | src/arm/virtual-frame-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 PatchInlinedLoad(address, Heap::null_value()); 632 PatchInlinedLoad(address, Heap::null_value());
633 } 633 }
634 634
635 635
636 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) { 636 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) {
637 Address inline_end_address; 637 Address inline_end_address;
638 if (!IsInlinedICSite(address, &inline_end_address)) return false; 638 if (!IsInlinedICSite(address, &inline_end_address)) return false;
639 639
640 // Patch the map check. 640 // Patch the map check.
641 Address ldr_map_instr_address = 641 Address ldr_map_instr_address =
642 inline_end_address - 19 * Assembler::kInstrSize; 642 inline_end_address - 18 * Assembler::kInstrSize;
643 Assembler::set_target_address_at(ldr_map_instr_address, 643 Assembler::set_target_address_at(ldr_map_instr_address,
644 reinterpret_cast<Address>(map)); 644 reinterpret_cast<Address>(map));
645 return true; 645 return true;
646 } 646 }
647 647
648 648
649 void KeyedStoreIC::ClearInlinedVersion(Address address) {} 649 void KeyedStoreIC::ClearInlinedVersion(Address address) {}
650 650
651 651
652 void KeyedStoreIC::RestoreInlinedVersion(Address address) {} 652 void KeyedStoreIC::RestoreInlinedVersion(Address address) {}
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1758 __ bind(&miss); 1758 __ bind(&miss);
1759 1759
1760 GenerateMiss(masm); 1760 GenerateMiss(masm);
1761 } 1761 }
1762 1762
1763 1763
1764 #undef __ 1764 #undef __
1765 1765
1766 1766
1767 } } // namespace v8::internal 1767 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/virtual-frame-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698