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

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 3402014: Generate inline code for contextual loads. (Closed)
Patch Set: Created 10 years, 3 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
« src/ia32/codegen-ia32.cc ('K') | « src/x64/ic-x64.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 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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 1845
1846 // Check for deleted property if property can actually be deleted. 1846 // Check for deleted property if property can actually be deleted.
1847 if (!is_dont_delete) { 1847 if (!is_dont_delete) {
1848 __ CompareRoot(rbx, Heap::kTheHoleValueRootIndex); 1848 __ CompareRoot(rbx, Heap::kTheHoleValueRootIndex);
1849 __ j(equal, &miss); 1849 __ j(equal, &miss);
1850 } else if (FLAG_debug_code) { 1850 } else if (FLAG_debug_code) {
1851 __ CompareRoot(rbx, Heap::kTheHoleValueRootIndex); 1851 __ CompareRoot(rbx, Heap::kTheHoleValueRootIndex);
1852 __ Check(not_equal, "DontDelete cells can't contain the hole"); 1852 __ Check(not_equal, "DontDelete cells can't contain the hole");
1853 } 1853 }
1854 1854
1855 __ IncrementCounter(&Counters::named_load_global_inline, 1); 1855 __ IncrementCounter(&Counters::named_load_global_stub, 1);
1856 __ movq(rax, rbx); 1856 __ movq(rax, rbx);
1857 __ ret(0); 1857 __ ret(0);
1858 1858
1859 __ bind(&miss); 1859 __ bind(&miss);
1860 __ IncrementCounter(&Counters::named_load_global_inline_miss, 1); 1860 __ IncrementCounter(&Counters::named_load_global_stub_miss, 1);
1861 GenerateLoadMiss(masm(), Code::LOAD_IC); 1861 GenerateLoadMiss(masm(), Code::LOAD_IC);
1862 1862
1863 // Return the generated code. 1863 // Return the generated code.
1864 return GetCode(NORMAL, name); 1864 return GetCode(NORMAL, name);
1865 } 1865 }
1866 1866
1867 1867
1868 Object* KeyedLoadStubCompiler::CompileLoadCallback(String* name, 1868 Object* KeyedLoadStubCompiler::CompileLoadCallback(String* name,
1869 JSObject* receiver, 1869 JSObject* receiver,
1870 JSObject* holder, 1870 JSObject* holder,
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
2812 // Return the generated code. 2812 // Return the generated code.
2813 return GetCode(); 2813 return GetCode();
2814 } 2814 }
2815 2815
2816 2816
2817 #undef __ 2817 #undef __
2818 2818
2819 } } // namespace v8::internal 2819 } } // namespace v8::internal
2820 2820
2821 #endif // V8_TARGET_ARCH_X64 2821 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698