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 3053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3064 } | 3064 } |
3065 } | 3065 } |
3066 | 3066 |
3067 | 3067 |
3068 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { | 3068 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
3069 ASSERT(ToRegister(instr->object()).is(r1)); | 3069 ASSERT(ToRegister(instr->object()).is(r1)); |
3070 ASSERT(ToRegister(instr->value()).is(r0)); | 3070 ASSERT(ToRegister(instr->value()).is(r0)); |
3071 | 3071 |
3072 // Name is always in r2. | 3072 // Name is always in r2. |
3073 __ mov(r2, Operand(instr->name())); | 3073 __ mov(r2, Operand(instr->name())); |
3074 Handle<Code> ic = info_->is_strict() | 3074 Handle<Code> ic = info_->is_strict_mode() |
3075 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 3075 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
3076 : isolate()->builtins()->StoreIC_Initialize(); | 3076 : isolate()->builtins()->StoreIC_Initialize(); |
3077 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3077 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3078 } | 3078 } |
3079 | 3079 |
3080 | 3080 |
3081 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { | 3081 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
3082 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); | 3082 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); |
3083 DeoptimizeIf(hs, instr->environment()); | 3083 DeoptimizeIf(hs, instr->environment()); |
3084 } | 3084 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3122 __ Usat(value, 8, Operand(value)); | 3122 __ Usat(value, 8, Operand(value)); |
3123 __ strb(value, MemOperand(external_pointer, key, LSL, 0)); | 3123 __ strb(value, MemOperand(external_pointer, key, LSL, 0)); |
3124 } | 3124 } |
3125 | 3125 |
3126 | 3126 |
3127 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 3127 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
3128 ASSERT(ToRegister(instr->object()).is(r2)); | 3128 ASSERT(ToRegister(instr->object()).is(r2)); |
3129 ASSERT(ToRegister(instr->key()).is(r1)); | 3129 ASSERT(ToRegister(instr->key()).is(r1)); |
3130 ASSERT(ToRegister(instr->value()).is(r0)); | 3130 ASSERT(ToRegister(instr->value()).is(r0)); |
3131 | 3131 |
3132 Handle<Code> ic = info_->is_strict() | 3132 Handle<Code> ic = info_->is_strict_mode() |
3133 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() | 3133 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
3134 : isolate()->builtins()->KeyedStoreIC_Initialize(); | 3134 : isolate()->builtins()->KeyedStoreIC_Initialize(); |
3135 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3135 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3136 } | 3136 } |
3137 | 3137 |
3138 | 3138 |
3139 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 3139 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
3140 class DeferredStringCharCodeAt: public LDeferredCode { | 3140 class DeferredStringCharCodeAt: public LDeferredCode { |
3141 public: | 3141 public: |
3142 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 3142 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4123 ASSERT(!environment->HasBeenRegistered()); | 4123 ASSERT(!environment->HasBeenRegistered()); |
4124 RegisterEnvironmentForDeoptimization(environment); | 4124 RegisterEnvironmentForDeoptimization(environment); |
4125 ASSERT(osr_pc_offset_ == -1); | 4125 ASSERT(osr_pc_offset_ == -1); |
4126 osr_pc_offset_ = masm()->pc_offset(); | 4126 osr_pc_offset_ = masm()->pc_offset(); |
4127 } | 4127 } |
4128 | 4128 |
4129 | 4129 |
4130 #undef __ | 4130 #undef __ |
4131 | 4131 |
4132 } } // namespace v8::internal | 4132 } } // namespace v8::internal |
OLD | NEW |