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

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

Issue 2018005: Fix inlined keyed property load on ARM... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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
« src/arm/codegen-arm.cc ('K') | « src/arm/codegen-arm.cc ('k') | no next file » | 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 - 18 * Assembler::kInstrSize; 642 inline_end_address - 19 * Assembler::kInstrSize;
Erik Corry 2010/05/10 10:16:48 Can we give this 19/20 constant a name?
Søren Thygesen Gjesse 2010/05/10 10:45:26 Added constant kInlinedKeyedLoadInstructionsAfterP
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 // Insert null as the elements map to check for. This will make 650 // Insert null as the elements map to check for. This will make
651 // sure that the elements fast-case map check fails so that control 651 // sure that the elements fast-case map check fails so that control
652 // flows to the IC instead of the inlined version. 652 // flows to the IC instead of the inlined version.
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 __ bind(&miss); 1831 __ bind(&miss);
1832 1832
1833 GenerateMiss(masm); 1833 GenerateMiss(masm);
1834 } 1834 }
1835 1835
1836 1836
1837 #undef __ 1837 #undef __
1838 1838
1839 1839
1840 } } // namespace v8::internal 1840 } } // namespace v8::internal
OLDNEW
« src/arm/codegen-arm.cc ('K') | « src/arm/codegen-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698