| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 : 0; | 309 : 0; |
| 310 __ Drop(pop_count); | 310 __ Drop(pop_count); |
| 311 } | 311 } |
| 312 } | 312 } |
| 313 | 313 |
| 314 | 314 |
| 315 // Assembles an instruction after register allocation, producing machine code. | 315 // Assembles an instruction after register allocation, producing machine code. |
| 316 void CodeGenerator::AssembleArchInstruction(Instruction* instr) { | 316 void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
| 317 ArmOperandConverter i(this, instr); | 317 ArmOperandConverter i(this, instr); |
| 318 | 318 |
| 319 masm()->MaybeCheckConstPool(); | |
| 320 | |
| 321 switch (ArchOpcodeField::decode(instr->opcode())) { | 319 switch (ArchOpcodeField::decode(instr->opcode())) { |
| 322 case kArchCallCodeObject: { | 320 case kArchCallCodeObject: { |
| 323 EnsureSpaceForLazyDeopt(); | 321 EnsureSpaceForLazyDeopt(); |
| 324 if (instr->InputAt(0)->IsImmediate()) { | 322 if (instr->InputAt(0)->IsImmediate()) { |
| 325 __ Call(Handle<Code>::cast(i.InputHeapObject(0)), | 323 __ Call(Handle<Code>::cast(i.InputHeapObject(0)), |
| 326 RelocInfo::CODE_TARGET); | 324 RelocInfo::CODE_TARGET); |
| 327 } else { | 325 } else { |
| 328 __ add(ip, i.InputRegister(0), | 326 __ add(ip, i.InputRegister(0), |
| 329 Operand(Code::kHeaderSize - kHeapObjectTag)); | 327 Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 330 __ Call(ip); | 328 __ Call(ip); |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 } | 1214 } |
| 1217 } | 1215 } |
| 1218 MarkLazyDeoptSite(); | 1216 MarkLazyDeoptSite(); |
| 1219 } | 1217 } |
| 1220 | 1218 |
| 1221 #undef __ | 1219 #undef __ |
| 1222 | 1220 |
| 1223 } // namespace compiler | 1221 } // namespace compiler |
| 1224 } // namespace internal | 1222 } // namespace internal |
| 1225 } // namespace v8 | 1223 } // namespace v8 |
| OLD | NEW |