| 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1376       break; | 1376       break; | 
| 1377     case kUnsignedGreaterThan: | 1377     case kUnsignedGreaterThan: | 
| 1378       __ j(above, tlabel); | 1378       __ j(above, tlabel); | 
| 1379       break; | 1379       break; | 
| 1380     case kOverflow: | 1380     case kOverflow: | 
| 1381       __ j(overflow, tlabel); | 1381       __ j(overflow, tlabel); | 
| 1382       break; | 1382       break; | 
| 1383     case kNotOverflow: | 1383     case kNotOverflow: | 
| 1384       __ j(no_overflow, tlabel); | 1384       __ j(no_overflow, tlabel); | 
| 1385       break; | 1385       break; | 
|  | 1386     default: | 
|  | 1387       UNREACHABLE(); | 
|  | 1388       break; | 
| 1386   } | 1389   } | 
| 1387   if (!branch->fallthru) __ jmp(flabel, flabel_distance); | 1390   if (!branch->fallthru) __ jmp(flabel, flabel_distance); | 
| 1388 } | 1391 } | 
| 1389 | 1392 | 
| 1390 | 1393 | 
| 1391 void CodeGenerator::AssembleArchJump(RpoNumber target) { | 1394 void CodeGenerator::AssembleArchJump(RpoNumber target) { | 
| 1392   if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target)); | 1395   if (!IsNextInAssemblyOrder(target)) __ jmp(GetLabel(target)); | 
| 1393 } | 1396 } | 
| 1394 | 1397 | 
| 1395 | 1398 | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1445       break; | 1448       break; | 
| 1446     case kUnsignedGreaterThan: | 1449     case kUnsignedGreaterThan: | 
| 1447       cc = above; | 1450       cc = above; | 
| 1448       break; | 1451       break; | 
| 1449     case kOverflow: | 1452     case kOverflow: | 
| 1450       cc = overflow; | 1453       cc = overflow; | 
| 1451       break; | 1454       break; | 
| 1452     case kNotOverflow: | 1455     case kNotOverflow: | 
| 1453       cc = no_overflow; | 1456       cc = no_overflow; | 
| 1454       break; | 1457       break; | 
|  | 1458     default: | 
|  | 1459       UNREACHABLE(); | 
|  | 1460       break; | 
| 1455   } | 1461   } | 
| 1456   __ bind(&check); | 1462   __ bind(&check); | 
| 1457   __ setcc(cc, reg); | 1463   __ setcc(cc, reg); | 
| 1458   __ movzxbl(reg, reg); | 1464   __ movzxbl(reg, reg); | 
| 1459   __ bind(&done); | 1465   __ bind(&done); | 
| 1460 } | 1466 } | 
| 1461 | 1467 | 
| 1462 | 1468 | 
| 1463 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { | 1469 void CodeGenerator::AssembleArchLookupSwitch(Instruction* instr) { | 
| 1464   X64OperandConverter i(this, instr); | 1470   X64OperandConverter i(this, instr); | 
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1806     int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1812     int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 
| 1807     __ Nop(padding_size); | 1813     __ Nop(padding_size); | 
| 1808   } | 1814   } | 
| 1809 } | 1815 } | 
| 1810 | 1816 | 
| 1811 #undef __ | 1817 #undef __ | 
| 1812 | 1818 | 
| 1813 }  // namespace internal | 1819 }  // namespace internal | 
| 1814 }  // namespace compiler | 1820 }  // namespace compiler | 
| 1815 }  // namespace v8 | 1821 }  // namespace v8 | 
| OLD | NEW | 
|---|