| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 __ j(cc, &set, Label::kNear); | 1364 __ j(cc, &set, Label::kNear); |
| 1365 __ Move(reg, Immediate(0)); | 1365 __ Move(reg, Immediate(0)); |
| 1366 __ jmp(&done, Label::kNear); | 1366 __ jmp(&done, Label::kNear); |
| 1367 __ bind(&set); | 1367 __ bind(&set); |
| 1368 __ mov(reg, Immediate(1)); | 1368 __ mov(reg, Immediate(1)); |
| 1369 } | 1369 } |
| 1370 __ bind(&done); | 1370 __ bind(&done); |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 | 1373 |
| 1374 void CodeGenerator::AssembleArchSelect(Instruction* instr, |
| 1375 FlagsCondition condition) { |
| 1376 // Unsupported. |
| 1377 UNREACHABLE(); |
| 1378 } |
| 1379 |
| 1380 |
| 1374 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { | 1381 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { |
| 1375 X87OperandConverter i(this, instr); | 1382 X87OperandConverter i(this, instr); |
| 1376 Register input = i.InputRegister(0); | 1383 Register input = i.InputRegister(0); |
| 1377 for (size_t index = 2; index < instr->InputCount(); index += 2) { | 1384 for (size_t index = 2; index < instr->InputCount(); index += 2) { |
| 1378 __ cmp(input, Immediate(i.InputInt32(index + 0))); | 1385 __ cmp(input, Immediate(i.InputInt32(index + 0))); |
| 1379 __ j(equal, GetLabel(i.InputRpo(index + 1))); | 1386 __ j(equal, GetLabel(i.InputRpo(index + 1))); |
| 1380 } | 1387 } |
| 1381 AssembleArchJump(i.InputRpo(1)); | 1388 AssembleArchJump(i.InputRpo(1)); |
| 1382 } | 1389 } |
| 1383 | 1390 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1861 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1855 __ Nop(padding_size); | 1862 __ Nop(padding_size); |
| 1856 } | 1863 } |
| 1857 } | 1864 } |
| 1858 | 1865 |
| 1859 #undef __ | 1866 #undef __ |
| 1860 | 1867 |
| 1861 } // namespace compiler | 1868 } // namespace compiler |
| 1862 } // namespace internal | 1869 } // namespace internal |
| 1863 } // namespace v8 | 1870 } // namespace v8 |
| OLD | NEW |