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

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

Issue 3537003: Use existing global cell status as a hint when generating loads. (Closed)
Patch Set: added GC test Created 10 years, 2 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/v8-counters.h ('k') | test/cctest/test-api.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 // so we add 3 to get the offset of the displacement. 1721 // so we add 3 to get the offset of the displacement.
1722 Address offset_address = 1722 Address offset_address =
1723 test_instruction_address + delta + kOffsetToLoadInstruction + 3; 1723 test_instruction_address + delta + kOffsetToLoadInstruction + 3;
1724 *reinterpret_cast<int*>(offset_address) = offset - kHeapObjectTag; 1724 *reinterpret_cast<int*>(offset_address) = offset - kHeapObjectTag;
1725 return true; 1725 return true;
1726 } 1726 }
1727 1727
1728 1728
1729 bool LoadIC::PatchInlinedContextualLoad(Address address, 1729 bool LoadIC::PatchInlinedContextualLoad(Address address,
1730 Object* map, 1730 Object* map,
1731 Object* cell) { 1731 Object* cell,
1732 bool is_dont_delete) {
1732 // TODO(<bug#>): implement this. 1733 // TODO(<bug#>): implement this.
1733 return false; 1734 return false;
1734 } 1735 }
1735 1736
1736 1737
1737 // The offset from the inlined patch site to the start of the inlined 1738 // The offset from the inlined patch site to the start of the inlined
1738 // store instruction. 1739 // store instruction.
1739 const int StoreIC::kOffsetToStoreInstruction = 20; 1740 const int StoreIC::kOffsetToStoreInstruction = 20;
1740 1741
1741 1742
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 GenerateMiss(masm); 1898 GenerateMiss(masm);
1898 } 1899 }
1899 1900
1900 1901
1901 #undef __ 1902 #undef __
1902 1903
1903 1904
1904 } } // namespace v8::internal 1905 } } // namespace v8::internal
1905 1906
1906 #endif // V8_TARGET_ARCH_X64 1907 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8-counters.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698