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 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2964 } | 2964 } |
2965 } | 2965 } |
2966 | 2966 |
2967 | 2967 |
2968 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { | 2968 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
2969 ASSERT(ToRegister(instr->context()).is(esi)); | 2969 ASSERT(ToRegister(instr->context()).is(esi)); |
2970 ASSERT(ToRegister(instr->object()).is(edx)); | 2970 ASSERT(ToRegister(instr->object()).is(edx)); |
2971 ASSERT(ToRegister(instr->value()).is(eax)); | 2971 ASSERT(ToRegister(instr->value()).is(eax)); |
2972 | 2972 |
2973 __ mov(ecx, instr->name()); | 2973 __ mov(ecx, instr->name()); |
2974 Handle<Code> ic = info_->is_strict() | 2974 Handle<Code> ic = info_->is_strict_mode() |
2975 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2975 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
2976 : isolate()->builtins()->StoreIC_Initialize(); | 2976 : isolate()->builtins()->StoreIC_Initialize(); |
2977 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2977 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2978 } | 2978 } |
2979 | 2979 |
2980 | 2980 |
2981 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { | 2981 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
2982 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); | 2982 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); |
2983 DeoptimizeIf(above_equal, instr->environment()); | 2983 DeoptimizeIf(above_equal, instr->environment()); |
2984 } | 2984 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3064 } | 3064 } |
3065 } | 3065 } |
3066 | 3066 |
3067 | 3067 |
3068 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 3068 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
3069 ASSERT(ToRegister(instr->context()).is(esi)); | 3069 ASSERT(ToRegister(instr->context()).is(esi)); |
3070 ASSERT(ToRegister(instr->object()).is(edx)); | 3070 ASSERT(ToRegister(instr->object()).is(edx)); |
3071 ASSERT(ToRegister(instr->key()).is(ecx)); | 3071 ASSERT(ToRegister(instr->key()).is(ecx)); |
3072 ASSERT(ToRegister(instr->value()).is(eax)); | 3072 ASSERT(ToRegister(instr->value()).is(eax)); |
3073 | 3073 |
3074 Handle<Code> ic = info_->is_strict() | 3074 Handle<Code> ic = info_->is_strict_mode() |
3075 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() | 3075 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
3076 : isolate()->builtins()->KeyedStoreIC_Initialize(); | 3076 : isolate()->builtins()->KeyedStoreIC_Initialize(); |
3077 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3077 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3078 } | 3078 } |
3079 | 3079 |
3080 | 3080 |
3081 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 3081 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
3082 class DeferredStringCharCodeAt: public LDeferredCode { | 3082 class DeferredStringCharCodeAt: public LDeferredCode { |
3083 public: | 3083 public: |
3084 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 3084 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4149 ASSERT(osr_pc_offset_ == -1); | 4149 ASSERT(osr_pc_offset_ == -1); |
4150 osr_pc_offset_ = masm()->pc_offset(); | 4150 osr_pc_offset_ = masm()->pc_offset(); |
4151 } | 4151 } |
4152 | 4152 |
4153 | 4153 |
4154 #undef __ | 4154 #undef __ |
4155 | 4155 |
4156 } } // namespace v8::internal | 4156 } } // namespace v8::internal |
4157 | 4157 |
4158 #endif // V8_TARGET_ARCH_IA32 | 4158 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |