| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |