OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" |
8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 // Check for deleted property if property can actually be deleted. | 782 // Check for deleted property if property can actually be deleted. |
783 if (is_configurable) { | 783 if (is_configurable) { |
784 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 784 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
785 __ j(equal, &miss); | 785 __ j(equal, &miss); |
786 } else if (FLAG_debug_code) { | 786 } else if (FLAG_debug_code) { |
787 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 787 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
788 __ Check(not_equal, kDontDeleteCellsCannotContainTheHole); | 788 __ Check(not_equal, kDontDeleteCellsCannotContainTheHole); |
789 } | 789 } |
790 | 790 |
791 Counters* counters = isolate()->counters(); | 791 Counters* counters = isolate()->counters(); |
792 __ IncrementCounter(counters->named_load_global_stub(), 1); | 792 __ IncrementCounter(counters->ic_named_load_global_stub(), 1); |
793 if (IC::ICUseVector(kind())) { | 793 if (IC::ICUseVector(kind())) { |
794 DiscardVectorAndSlot(); | 794 DiscardVectorAndSlot(); |
795 } | 795 } |
796 __ ret(0); | 796 __ ret(0); |
797 | 797 |
798 FrontendFooter(name, &miss); | 798 FrontendFooter(name, &miss); |
799 | 799 |
800 // Return the generated code. | 800 // Return the generated code. |
801 return GetCode(kind(), Code::NORMAL, name); | 801 return GetCode(kind(), Code::NORMAL, name); |
802 } | 802 } |
803 | 803 |
804 | 804 |
805 #undef __ | 805 #undef __ |
806 } // namespace internal | 806 } // namespace internal |
807 } // namespace v8 | 807 } // namespace v8 |
808 | 808 |
809 #endif // V8_TARGET_ARCH_X64 | 809 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |