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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 // Check for deleted property if property can actually be deleted. | 788 // Check for deleted property if property can actually be deleted. |
789 if (is_configurable) { | 789 if (is_configurable) { |
790 __ cmp(result, factory()->the_hole_value()); | 790 __ cmp(result, factory()->the_hole_value()); |
791 __ j(equal, &miss); | 791 __ j(equal, &miss); |
792 } else if (FLAG_debug_code) { | 792 } else if (FLAG_debug_code) { |
793 __ cmp(result, factory()->the_hole_value()); | 793 __ cmp(result, factory()->the_hole_value()); |
794 __ Check(not_equal, kDontDeleteCellsCannotContainTheHole); | 794 __ Check(not_equal, kDontDeleteCellsCannotContainTheHole); |
795 } | 795 } |
796 | 796 |
797 Counters* counters = isolate()->counters(); | 797 Counters* counters = isolate()->counters(); |
798 __ IncrementCounter(counters->named_load_global_stub(), 1); | 798 __ IncrementCounter(counters->ic_named_load_global_stub(), 1); |
799 // The code above already loads the result into the return register. | 799 // The code above already loads the result into the return register. |
800 if (IC::ICUseVector(kind())) { | 800 if (IC::ICUseVector(kind())) { |
801 DiscardVectorAndSlot(); | 801 DiscardVectorAndSlot(); |
802 } | 802 } |
803 __ ret(0); | 803 __ ret(0); |
804 | 804 |
805 FrontendFooter(name, &miss); | 805 FrontendFooter(name, &miss); |
806 | 806 |
807 // Return the generated code. | 807 // Return the generated code. |
808 return GetCode(kind(), Code::NORMAL, name); | 808 return GetCode(kind(), Code::NORMAL, name); |
809 } | 809 } |
810 | 810 |
811 | 811 |
812 #undef __ | 812 #undef __ |
813 } // namespace internal | 813 } // namespace internal |
814 } // namespace v8 | 814 } // namespace v8 |
815 | 815 |
816 #endif // V8_TARGET_ARCH_IA32 | 816 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |