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

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

Issue 2870018: Add "has fast elements" bit to maps and use it in inlined keyed loads. (Closed)
Patch Set: More ARM fixes. Created 10 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/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-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 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 923 }
924 924
925 925
926 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) { 926 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) {
927 Address inline_end_address; 927 Address inline_end_address;
928 if (!IsInlinedICSite(address, &inline_end_address)) return false; 928 if (!IsInlinedICSite(address, &inline_end_address)) return false;
929 929
930 // Patch the map check. 930 // Patch the map check.
931 Address ldr_map_instr_address = 931 Address ldr_map_instr_address =
932 inline_end_address - 932 inline_end_address -
933 (CodeGenerator::kInlinedKeyedLoadInstructionsAfterPatch * 933 (CodeGenerator::GetInlinedKeyedLoadInstructionsAfterPatch() *
934 Assembler::kInstrSize); 934 Assembler::kInstrSize);
935 Assembler::set_target_address_at(ldr_map_instr_address, 935 Assembler::set_target_address_at(ldr_map_instr_address,
936 reinterpret_cast<Address>(map)); 936 reinterpret_cast<Address>(map));
937 return true; 937 return true;
938 } 938 }
939 939
940 940
941 void KeyedStoreIC::ClearInlinedVersion(Address address) { 941 void KeyedStoreIC::ClearInlinedVersion(Address address) {
942 // Insert null as the elements map to check for. This will make 942 // Insert null as the elements map to check for. This will make
943 // sure that the elements fast-case map check fails so that control 943 // sure that the elements fast-case map check fails so that control
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 GenerateMiss(masm); 2137 GenerateMiss(masm);
2138 } 2138 }
2139 2139
2140 2140
2141 #undef __ 2141 #undef __
2142 2142
2143 2143
2144 } } // namespace v8::internal 2144 } } // namespace v8::internal
2145 2145
2146 #endif // V8_TARGET_ARCH_ARM 2146 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698