| 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 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2935 } | 2935 } |
| 2936 } | 2936 } |
| 2937 } | 2937 } |
| 2938 | 2938 |
| 2939 | 2939 |
| 2940 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { | 2940 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
| 2941 ASSERT(ToRegister(instr->object()).is(rdx)); | 2941 ASSERT(ToRegister(instr->object()).is(rdx)); |
| 2942 ASSERT(ToRegister(instr->value()).is(rax)); | 2942 ASSERT(ToRegister(instr->value()).is(rax)); |
| 2943 | 2943 |
| 2944 __ Move(rcx, instr->hydrogen()->name()); | 2944 __ Move(rcx, instr->hydrogen()->name()); |
| 2945 Handle<Code> ic = info_->is_strict() | 2945 Handle<Code> ic = info_->is_strict_mode() |
| 2946 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2946 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
| 2947 : isolate()->builtins()->StoreIC_Initialize(); | 2947 : isolate()->builtins()->StoreIC_Initialize(); |
| 2948 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2948 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2949 } | 2949 } |
| 2950 | 2950 |
| 2951 | 2951 |
| 2952 void LCodeGen::DoStoreKeyedSpecializedArrayElement( | 2952 void LCodeGen::DoStoreKeyedSpecializedArrayElement( |
| 2953 LStoreKeyedSpecializedArrayElement* instr) { | 2953 LStoreKeyedSpecializedArrayElement* instr) { |
| 2954 Register external_pointer = ToRegister(instr->external_pointer()); | 2954 Register external_pointer = ToRegister(instr->external_pointer()); |
| 2955 Register key = ToRegister(instr->key()); | 2955 Register key = ToRegister(instr->key()); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3031 __ RecordWrite(elements, key, value); | 3031 __ RecordWrite(elements, key, value); |
| 3032 } | 3032 } |
| 3033 } | 3033 } |
| 3034 | 3034 |
| 3035 | 3035 |
| 3036 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 3036 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
| 3037 ASSERT(ToRegister(instr->object()).is(rdx)); | 3037 ASSERT(ToRegister(instr->object()).is(rdx)); |
| 3038 ASSERT(ToRegister(instr->key()).is(rcx)); | 3038 ASSERT(ToRegister(instr->key()).is(rcx)); |
| 3039 ASSERT(ToRegister(instr->value()).is(rax)); | 3039 ASSERT(ToRegister(instr->value()).is(rax)); |
| 3040 | 3040 |
| 3041 Handle<Code> ic = info_->is_strict() | 3041 Handle<Code> ic = info_->is_strict_mode() |
| 3042 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() | 3042 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
| 3043 : isolate()->builtins()->KeyedStoreIC_Initialize(); | 3043 : isolate()->builtins()->KeyedStoreIC_Initialize(); |
| 3044 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3044 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3045 } | 3045 } |
| 3046 | 3046 |
| 3047 | 3047 |
| 3048 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 3048 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 3049 class DeferredStringCharCodeAt: public LDeferredCode { | 3049 class DeferredStringCharCodeAt: public LDeferredCode { |
| 3050 public: | 3050 public: |
| 3051 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 3051 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3961 RegisterEnvironmentForDeoptimization(environment); | 3961 RegisterEnvironmentForDeoptimization(environment); |
| 3962 ASSERT(osr_pc_offset_ == -1); | 3962 ASSERT(osr_pc_offset_ == -1); |
| 3963 osr_pc_offset_ = masm()->pc_offset(); | 3963 osr_pc_offset_ = masm()->pc_offset(); |
| 3964 } | 3964 } |
| 3965 | 3965 |
| 3966 #undef __ | 3966 #undef __ |
| 3967 | 3967 |
| 3968 } } // namespace v8::internal | 3968 } } // namespace v8::internal |
| 3969 | 3969 |
| 3970 #endif // V8_TARGET_ARCH_X64 | 3970 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |