| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2779 } | 2779 } |
| 2780 } | 2780 } |
| 2781 | 2781 |
| 2782 | 2782 |
| 2783 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { | 2783 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
| 2784 ASSERT(ToRegister(instr->context()).is(esi)); | 2784 ASSERT(ToRegister(instr->context()).is(esi)); |
| 2785 ASSERT(ToRegister(instr->object()).is(edx)); | 2785 ASSERT(ToRegister(instr->object()).is(edx)); |
| 2786 ASSERT(ToRegister(instr->value()).is(eax)); | 2786 ASSERT(ToRegister(instr->value()).is(eax)); |
| 2787 | 2787 |
| 2788 __ mov(ecx, instr->name()); | 2788 __ mov(ecx, instr->name()); |
| 2789 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); | 2789 Handle<Code> ic(Builtins::builtin( |
| 2790 info_->is_strict() ? Builtins::StoreIC_Initialize_Strict |
| 2791 : Builtins::StoreIC_Initialize)); |
| 2790 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2792 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2791 } | 2793 } |
| 2792 | 2794 |
| 2793 | 2795 |
| 2794 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { | 2796 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
| 2795 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); | 2797 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); |
| 2796 DeoptimizeIf(above_equal, instr->environment()); | 2798 DeoptimizeIf(above_equal, instr->environment()); |
| 2797 } | 2799 } |
| 2798 | 2800 |
| 2799 | 2801 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2847 } | 2849 } |
| 2848 } | 2850 } |
| 2849 | 2851 |
| 2850 | 2852 |
| 2851 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 2853 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
| 2852 ASSERT(ToRegister(instr->context()).is(esi)); | 2854 ASSERT(ToRegister(instr->context()).is(esi)); |
| 2853 ASSERT(ToRegister(instr->object()).is(edx)); | 2855 ASSERT(ToRegister(instr->object()).is(edx)); |
| 2854 ASSERT(ToRegister(instr->key()).is(ecx)); | 2856 ASSERT(ToRegister(instr->key()).is(ecx)); |
| 2855 ASSERT(ToRegister(instr->value()).is(eax)); | 2857 ASSERT(ToRegister(instr->value()).is(eax)); |
| 2856 | 2858 |
| 2857 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); | 2859 Handle<Code> ic(Builtins::builtin( |
| 2860 info_->is_strict() ? Builtins::KeyedStoreIC_Initialize_Strict |
| 2861 : Builtins::KeyedStoreIC_Initialize)); |
| 2858 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2862 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2859 } | 2863 } |
| 2860 | 2864 |
| 2861 | 2865 |
| 2862 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 2866 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 2863 class DeferredStringCharCodeAt: public LDeferredCode { | 2867 class DeferredStringCharCodeAt: public LDeferredCode { |
| 2864 public: | 2868 public: |
| 2865 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 2869 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
| 2866 : LDeferredCode(codegen), instr_(instr) { } | 2870 : LDeferredCode(codegen), instr_(instr) { } |
| 2867 virtual void Generate() { codegen()->DoDeferredStringCharCodeAt(instr_); } | 2871 virtual void Generate() { codegen()->DoDeferredStringCharCodeAt(instr_); } |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3871 ASSERT(osr_pc_offset_ == -1); | 3875 ASSERT(osr_pc_offset_ == -1); |
| 3872 osr_pc_offset_ = masm()->pc_offset(); | 3876 osr_pc_offset_ = masm()->pc_offset(); |
| 3873 } | 3877 } |
| 3874 | 3878 |
| 3875 | 3879 |
| 3876 #undef __ | 3880 #undef __ |
| 3877 | 3881 |
| 3878 } } // namespace v8::internal | 3882 } } // namespace v8::internal |
| 3879 | 3883 |
| 3880 #endif // V8_TARGET_ARCH_IA32 | 3884 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |