OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 } | 2177 } |
2178 } | 2178 } |
2179 | 2179 |
2180 | 2180 |
2181 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2181 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2182 DCHECK(ToRegister(instr->context()).is(cp)); | 2182 DCHECK(ToRegister(instr->context()).is(cp)); |
2183 DCHECK(ToRegister(instr->left()).is(r1)); | 2183 DCHECK(ToRegister(instr->left()).is(r1)); |
2184 DCHECK(ToRegister(instr->right()).is(r0)); | 2184 DCHECK(ToRegister(instr->right()).is(r0)); |
2185 DCHECK(ToRegister(instr->result()).is(r0)); | 2185 DCHECK(ToRegister(instr->result()).is(r0)); |
2186 | 2186 |
2187 Handle<Code> code = | 2187 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code(); |
2188 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); | |
2189 // Block literal pool emission to ensure nop indicating no inlined smi code | 2188 // Block literal pool emission to ensure nop indicating no inlined smi code |
2190 // is in the correct position. | 2189 // is in the correct position. |
2191 Assembler::BlockConstPoolScope block_const_pool(masm()); | 2190 Assembler::BlockConstPoolScope block_const_pool(masm()); |
2192 CallCode(code, RelocInfo::CODE_TARGET, instr); | 2191 CallCode(code, RelocInfo::CODE_TARGET, instr); |
2193 } | 2192 } |
2194 | 2193 |
2195 | 2194 |
2196 template<class InstrType> | 2195 template<class InstrType> |
2197 void LCodeGen::EmitBranch(InstrType instr, Condition condition) { | 2196 void LCodeGen::EmitBranch(InstrType instr, Condition condition) { |
2198 int left_block = instr->TrueDestination(chunk_); | 2197 int left_block = instr->TrueDestination(chunk_); |
(...skipping 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5977 __ Push(scope_info); | 5976 __ Push(scope_info); |
5978 __ push(ToRegister(instr->function())); | 5977 __ push(ToRegister(instr->function())); |
5979 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5978 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5980 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5979 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5981 } | 5980 } |
5982 | 5981 |
5983 | 5982 |
5984 #undef __ | 5983 #undef __ |
5985 | 5984 |
5986 } } // namespace v8::internal | 5985 } } // namespace v8::internal |
OLD | NEW |