OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // TODO(jarin) The load of the context should be separated from the call. | 159 // TODO(jarin) The load of the context should be separated from the call. |
160 Register func = i.InputRegister(0); | 160 Register func = i.InputRegister(0); |
161 __ ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); | 161 __ ldr(cp, FieldMemOperand(func, JSFunction::kContextOffset)); |
162 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 162 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
163 __ Call(ip); | 163 __ Call(ip); |
164 AddSafepointAndDeopt(instr); | 164 AddSafepointAndDeopt(instr); |
165 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 165 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
166 break; | 166 break; |
167 } | 167 } |
168 case kArchDeoptimize: { | 168 case kArchDeoptimize: { |
169 int deoptimization_id = MiscField::decode(instr->opcode()); | 169 int deoptimization_id = BuildTranslation(instr, 0); |
170 BuildTranslation(instr, 0, deoptimization_id); | 170 |
171 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 171 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
172 isolate(), deoptimization_id, Deoptimizer::LAZY); | 172 isolate(), deoptimization_id, Deoptimizer::LAZY); |
173 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 173 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
174 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 174 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
175 break; | 175 break; |
176 } | 176 } |
177 case kArchDrop: { | 177 case kArchDrop: { |
178 int words = MiscField::decode(instr->opcode()); | 178 int words = MiscField::decode(instr->opcode()); |
179 __ Drop(words); | 179 __ Drop(words); |
180 DCHECK_LT(0, words); | 180 DCHECK_LT(0, words); |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 | 841 |
842 void CodeGenerator::AddNopForSmiCodeInlining() { | 842 void CodeGenerator::AddNopForSmiCodeInlining() { |
843 // On 32-bit ARM we do not insert nops for inlined Smi code. | 843 // On 32-bit ARM we do not insert nops for inlined Smi code. |
844 UNREACHABLE(); | 844 UNREACHABLE(); |
845 } | 845 } |
846 | 846 |
847 #undef __ | 847 #undef __ |
848 } | 848 } |
849 } | 849 } |
850 } // namespace v8::internal::compiler | 850 } // namespace v8::internal::compiler |
OLD | NEW |