Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/x64/lithium-x64.cc

Issue 153913002: A64: Synchronize with r16756. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 712 }
713 713
714 714
715 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { 715 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) {
716 return AssignEnvironment(new(zone()) LDeoptimize); 716 return AssignEnvironment(new(zone()) LDeoptimize);
717 } 717 }
718 718
719 719
720 LInstruction* LChunkBuilder::DoShift(Token::Value op, 720 LInstruction* LChunkBuilder::DoShift(Token::Value op,
721 HBitwiseBinaryOperation* instr) { 721 HBitwiseBinaryOperation* instr) {
722 if (instr->representation().IsTagged()) { 722 if (instr->representation().IsSmiOrInteger32()) {
723 ASSERT(instr->left()->representation().IsTagged()); 723 ASSERT(instr->left()->representation().Equals(instr->representation()));
724 ASSERT(instr->right()->representation().IsTagged()); 724 ASSERT(instr->right()->representation().Equals(instr->representation()));
725 LOperand* left = UseRegisterAtStart(instr->left());
725 726
726 LOperand* left = UseFixed(instr->left(), rdx); 727 HValue* right_value = instr->right();
727 LOperand* right = UseFixed(instr->right(), rax); 728 LOperand* right = NULL;
728 LArithmeticT* result = new(zone()) LArithmeticT(op, left, right); 729 int constant_value = 0;
729 return MarkAsCall(DefineFixed(result, rax), instr); 730 if (right_value->IsConstant()) {
731 HConstant* constant = HConstant::cast(right_value);
732 right = chunk_->DefineConstantOperand(constant);
733 constant_value = constant->Integer32Value() & 0x1f;
734 } else {
735 right = UseFixed(right_value, rcx);
736 }
737
738 // Shift operations can only deoptimize if we do a logical shift by 0 and
739 // the result cannot be truncated to int32.
740 bool does_deopt = false;
741 if (op == Token::SHR && constant_value == 0) {
742 if (FLAG_opt_safe_uint32_operations) {
743 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
744 } else {
745 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToInt32);
746 }
747 }
748
749 LInstruction* result =
750 DefineSameAsFirst(new(zone()) LShiftI(op, left, right, does_deopt));
751 return does_deopt ? AssignEnvironment(result) : result;
752 } else {
753 return DoArithmeticT(op, instr);
730 } 754 }
731
732 ASSERT(instr->representation().IsSmiOrInteger32());
733 ASSERT(instr->left()->representation().Equals(instr->representation()));
734 ASSERT(instr->right()->representation().Equals(instr->representation()));
735 LOperand* left = UseRegisterAtStart(instr->left());
736
737 HValue* right_value = instr->right();
738 LOperand* right = NULL;
739 int constant_value = 0;
740 if (right_value->IsConstant()) {
741 HConstant* constant = HConstant::cast(right_value);
742 right = chunk_->DefineConstantOperand(constant);
743 constant_value = constant->Integer32Value() & 0x1f;
744 } else {
745 right = UseFixed(right_value, rcx);
746 }
747
748 // Shift operations can only deoptimize if we do a logical shift by 0 and
749 // the result cannot be truncated to int32.
750 bool does_deopt = false;
751 if (op == Token::SHR && constant_value == 0) {
752 if (FLAG_opt_safe_uint32_operations) {
753 does_deopt = !instr->CheckFlag(HInstruction::kUint32);
754 } else {
755 does_deopt = !instr->CheckUsesForFlag(HValue::kTruncatingToInt32);
756 }
757 }
758
759 LInstruction* result =
760 DefineSameAsFirst(new(zone()) LShiftI(op, left, right, does_deopt));
761 return does_deopt ? AssignEnvironment(result) : result;
762 } 755 }
763 756
764 757
765 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, 758 LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op,
766 HArithmeticBinaryOperation* instr) { 759 HArithmeticBinaryOperation* instr) {
767 ASSERT(instr->representation().IsDouble()); 760 ASSERT(instr->representation().IsDouble());
768 ASSERT(instr->left()->representation().IsDouble()); 761 ASSERT(instr->left()->representation().IsDouble());
769 ASSERT(instr->right()->representation().IsDouble()); 762 ASSERT(instr->right()->representation().IsDouble());
770 ASSERT(op != Token::MOD); 763 if (op == Token::MOD) {
771 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 764 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
772 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand()); 765 LOperand* right = UseFixedDouble(instr->BetterRightOperand(), xmm1);
773 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); 766 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right);
774 return DefineSameAsFirst(result); 767 return MarkAsCall(DefineSameAsFirst(result), instr);
768 } else {
769 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
770 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand());
771 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right);
772 return DefineSameAsFirst(result);
773 }
775 } 774 }
776 775
777 776
778 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op, 777 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op,
779 HArithmeticBinaryOperation* instr) { 778 HBinaryOperation* instr) {
780 ASSERT(op == Token::ADD ||
781 op == Token::DIV ||
782 op == Token::MOD ||
783 op == Token::MUL ||
784 op == Token::SUB);
785 HValue* left = instr->left(); 779 HValue* left = instr->left();
786 HValue* right = instr->right(); 780 HValue* right = instr->right();
787 ASSERT(left->representation().IsTagged()); 781 ASSERT(left->representation().IsTagged());
788 ASSERT(right->representation().IsTagged()); 782 ASSERT(right->representation().IsTagged());
789 LOperand* left_operand = UseFixed(left, rdx); 783 LOperand* left_operand = UseFixed(left, rdx);
790 LOperand* right_operand = UseFixed(right, rax); 784 LOperand* right_operand = UseFixed(right, rax);
791 LArithmeticT* result = 785 LArithmeticT* result =
792 new(zone()) LArithmeticT(op, left_operand, right_operand); 786 new(zone()) LArithmeticT(op, left_operand, right_operand);
793 return MarkAsCall(DefineFixed(result, rax), instr); 787 return MarkAsCall(DefineFixed(result, rax), instr);
794 } 788 }
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1335
1342 LInstruction* LChunkBuilder::DoShl(HShl* instr) { 1336 LInstruction* LChunkBuilder::DoShl(HShl* instr) {
1343 return DoShift(Token::SHL, instr); 1337 return DoShift(Token::SHL, instr);
1344 } 1338 }
1345 1339
1346 1340
1347 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { 1341 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) {
1348 if (instr->representation().IsSmiOrInteger32()) { 1342 if (instr->representation().IsSmiOrInteger32()) {
1349 ASSERT(instr->left()->representation().Equals(instr->representation())); 1343 ASSERT(instr->left()->representation().Equals(instr->representation()));
1350 ASSERT(instr->right()->representation().Equals(instr->representation())); 1344 ASSERT(instr->right()->representation().Equals(instr->representation()));
1345 ASSERT(instr->CheckFlag(HValue::kTruncatingToInt32));
1351 1346
1352 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 1347 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
1353 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); 1348 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
1354 return DefineSameAsFirst(new(zone()) LBitI(left, right)); 1349 return DefineSameAsFirst(new(zone()) LBitI(left, right));
1355 } else { 1350 } else {
1356 ASSERT(instr->representation().IsTagged()); 1351 return DoArithmeticT(instr->op(), instr);
1357 ASSERT(instr->left()->representation().IsTagged());
1358 ASSERT(instr->right()->representation().IsTagged());
1359
1360 LOperand* left = UseFixed(instr->left(), rdx);
1361 LOperand* right = UseFixed(instr->right(), rax);
1362 LArithmeticT* result = new(zone()) LArithmeticT(instr->op(), left, right);
1363 return MarkAsCall(DefineFixed(result, rax), instr);
1364 } 1352 }
1365 } 1353 }
1366 1354
1367 1355
1368 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { 1356 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) {
1369 if (instr->representation().IsDouble()) { 1357 if (instr->representation().IsSmiOrInteger32()) {
1370 return DoArithmeticD(Token::DIV, instr);
1371 } else if (instr->representation().IsSmiOrInteger32()) {
1372 ASSERT(instr->left()->representation().Equals(instr->representation())); 1358 ASSERT(instr->left()->representation().Equals(instr->representation()));
1373 ASSERT(instr->right()->representation().Equals(instr->representation())); 1359 ASSERT(instr->right()->representation().Equals(instr->representation()));
1374 if (instr->HasPowerOf2Divisor()) { 1360 if (instr->HasPowerOf2Divisor()) {
1375 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); 1361 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero));
1376 LOperand* value = UseRegisterAtStart(instr->left()); 1362 LOperand* value = UseRegisterAtStart(instr->left());
1377 LDivI* div = 1363 LDivI* div =
1378 new(zone()) LDivI(value, UseOrConstant(instr->right()), NULL); 1364 new(zone()) LDivI(value, UseOrConstant(instr->right()), NULL);
1379 return AssignEnvironment(DefineSameAsFirst(div)); 1365 return AssignEnvironment(DefineSameAsFirst(div));
1380 } 1366 }
1381 // The temporary operand is necessary to ensure that right is not allocated 1367 // The temporary operand is necessary to ensure that right is not allocated
1382 // into rdx. 1368 // into rdx.
1383 LOperand* temp = FixedTemp(rdx); 1369 LOperand* temp = FixedTemp(rdx);
1384 LOperand* dividend = UseFixed(instr->left(), rax); 1370 LOperand* dividend = UseFixed(instr->left(), rax);
1385 LOperand* divisor = UseRegister(instr->right()); 1371 LOperand* divisor = UseRegister(instr->right());
1386 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); 1372 LDivI* result = new(zone()) LDivI(dividend, divisor, temp);
1387 return AssignEnvironment(DefineFixed(result, rax)); 1373 return AssignEnvironment(DefineFixed(result, rax));
1374 } else if (instr->representation().IsDouble()) {
1375 return DoArithmeticD(Token::DIV, instr);
1388 } else { 1376 } else {
1389 ASSERT(instr->representation().IsTagged());
1390 return DoArithmeticT(Token::DIV, instr); 1377 return DoArithmeticT(Token::DIV, instr);
1391 } 1378 }
1392 } 1379 }
1393 1380
1394 1381
1395 HValue* LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(HValue* divisor) { 1382 HValue* LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(HValue* divisor) {
1396 if (divisor->IsConstant() && 1383 if (divisor->IsConstant() &&
1397 HConstant::cast(divisor)->HasInteger32Value()) { 1384 HConstant::cast(divisor)->HasInteger32Value()) {
1398 HConstant* constant_val = HConstant::cast(divisor); 1385 HConstant* constant_val = HConstant::cast(divisor);
1399 return constant_val->CopyToRepresentation(Representation::Integer32(), 1386 return constant_val->CopyToRepresentation(Representation::Integer32(),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 return (right->CanBeZero() || 1465 return (right->CanBeZero() ||
1479 (left->RangeCanInclude(kMinInt) && 1466 (left->RangeCanInclude(kMinInt) &&
1480 right->RangeCanInclude(-1) && 1467 right->RangeCanInclude(-1) &&
1481 instr->CheckFlag(HValue::kBailoutOnMinusZero)) || 1468 instr->CheckFlag(HValue::kBailoutOnMinusZero)) ||
1482 (left->CanBeNegative() && 1469 (left->CanBeNegative() &&
1483 instr->CanBeZero() && 1470 instr->CanBeZero() &&
1484 instr->CheckFlag(HValue::kBailoutOnMinusZero))) 1471 instr->CheckFlag(HValue::kBailoutOnMinusZero)))
1485 ? AssignEnvironment(result) 1472 ? AssignEnvironment(result)
1486 : result; 1473 : result;
1487 } 1474 }
1488 } else if (instr->representation().IsTagged()) { 1475 } else if (instr->representation().IsDouble()) {
1476 return DoArithmeticD(Token::MOD, instr);
1477 } else {
1489 return DoArithmeticT(Token::MOD, instr); 1478 return DoArithmeticT(Token::MOD, instr);
1490 } else {
1491 ASSERT(instr->representation().IsDouble());
1492 // We call a C function for double modulo. It can't trigger a GC. We need to
1493 // use fixed result register for the call.
1494 // TODO(fschneider): Allow any register as input registers.
1495 LArithmeticD* mod = new(zone()) LArithmeticD(Token::MOD,
1496 UseFixedDouble(left, xmm2),
1497 UseFixedDouble(right, xmm1));
1498 return MarkAsCall(DefineFixedDouble(mod, xmm1), instr);
1499 } 1479 }
1500 } 1480 }
1501 1481
1502 1482
1503 LInstruction* LChunkBuilder::DoMul(HMul* instr) { 1483 LInstruction* LChunkBuilder::DoMul(HMul* instr) {
1504 if (instr->representation().IsSmiOrInteger32()) { 1484 if (instr->representation().IsSmiOrInteger32()) {
1505 ASSERT(instr->left()->representation().Equals(instr->representation())); 1485 ASSERT(instr->left()->representation().Equals(instr->representation()));
1506 ASSERT(instr->right()->representation().Equals(instr->representation())); 1486 ASSERT(instr->right()->representation().Equals(instr->representation()));
1507 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 1487 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
1508 LOperand* right = UseOrConstant(instr->BetterRightOperand()); 1488 LOperand* right = UseOrConstant(instr->BetterRightOperand());
1509 LMulI* mul = new(zone()) LMulI(left, right); 1489 LMulI* mul = new(zone()) LMulI(left, right);
1510 if (instr->CheckFlag(HValue::kCanOverflow) || 1490 if (instr->CheckFlag(HValue::kCanOverflow) ||
1511 instr->CheckFlag(HValue::kBailoutOnMinusZero)) { 1491 instr->CheckFlag(HValue::kBailoutOnMinusZero)) {
1512 AssignEnvironment(mul); 1492 AssignEnvironment(mul);
1513 } 1493 }
1514 return DefineSameAsFirst(mul); 1494 return DefineSameAsFirst(mul);
1515 } else if (instr->representation().IsDouble()) { 1495 } else if (instr->representation().IsDouble()) {
1516 return DoArithmeticD(Token::MUL, instr); 1496 return DoArithmeticD(Token::MUL, instr);
1517 } else { 1497 } else {
1518 ASSERT(instr->representation().IsTagged());
1519 return DoArithmeticT(Token::MUL, instr); 1498 return DoArithmeticT(Token::MUL, instr);
1520 } 1499 }
1521 } 1500 }
1522 1501
1523 1502
1524 LInstruction* LChunkBuilder::DoSub(HSub* instr) { 1503 LInstruction* LChunkBuilder::DoSub(HSub* instr) {
1525 if (instr->representation().IsSmiOrInteger32()) { 1504 if (instr->representation().IsSmiOrInteger32()) {
1526 ASSERT(instr->left()->representation().Equals(instr->representation())); 1505 ASSERT(instr->left()->representation().Equals(instr->representation()));
1527 ASSERT(instr->right()->representation().Equals(instr->representation())); 1506 ASSERT(instr->right()->representation().Equals(instr->representation()));
1528 LOperand* left = UseRegisterAtStart(instr->left()); 1507 LOperand* left = UseRegisterAtStart(instr->left());
1529 LOperand* right = UseOrConstantAtStart(instr->right()); 1508 LOperand* right = UseOrConstantAtStart(instr->right());
1530 LSubI* sub = new(zone()) LSubI(left, right); 1509 LSubI* sub = new(zone()) LSubI(left, right);
1531 LInstruction* result = DefineSameAsFirst(sub); 1510 LInstruction* result = DefineSameAsFirst(sub);
1532 if (instr->CheckFlag(HValue::kCanOverflow)) { 1511 if (instr->CheckFlag(HValue::kCanOverflow)) {
1533 result = AssignEnvironment(result); 1512 result = AssignEnvironment(result);
1534 } 1513 }
1535 return result; 1514 return result;
1536 } else if (instr->representation().IsDouble()) { 1515 } else if (instr->representation().IsDouble()) {
1537 return DoArithmeticD(Token::SUB, instr); 1516 return DoArithmeticD(Token::SUB, instr);
1538 } else { 1517 } else {
1539 ASSERT(instr->representation().IsTagged());
1540 return DoArithmeticT(Token::SUB, instr); 1518 return DoArithmeticT(Token::SUB, instr);
1541 } 1519 }
1542 } 1520 }
1543 1521
1544 1522
1545 LInstruction* LChunkBuilder::DoAdd(HAdd* instr) { 1523 LInstruction* LChunkBuilder::DoAdd(HAdd* instr) {
1546 if (instr->representation().IsSmiOrInteger32()) { 1524 if (instr->representation().IsSmiOrInteger32()) {
1547 // Check to see if it would be advantageous to use an lea instruction rather 1525 // Check to see if it would be advantageous to use an lea instruction rather
1548 // than an add. This is the case when no overflow check is needed and there 1526 // than an add. This is the case when no overflow check is needed and there
1549 // are multiple uses of the add's inputs, so using a 3-register add will 1527 // are multiple uses of the add's inputs, so using a 3-register add will
(...skipping 11 matching lines...) Expand all
1561 LInstruction* result = use_lea 1539 LInstruction* result = use_lea
1562 ? DefineAsRegister(add) 1540 ? DefineAsRegister(add)
1563 : DefineSameAsFirst(add); 1541 : DefineSameAsFirst(add);
1564 if (can_overflow) { 1542 if (can_overflow) {
1565 result = AssignEnvironment(result); 1543 result = AssignEnvironment(result);
1566 } 1544 }
1567 return result; 1545 return result;
1568 } else if (instr->representation().IsDouble()) { 1546 } else if (instr->representation().IsDouble()) {
1569 return DoArithmeticD(Token::ADD, instr); 1547 return DoArithmeticD(Token::ADD, instr);
1570 } else { 1548 } else {
1571 ASSERT(instr->representation().IsTagged());
1572 return DoArithmeticT(Token::ADD, instr); 1549 return DoArithmeticT(Token::ADD, instr);
1573 } 1550 }
1574 return NULL; 1551 return NULL;
1575 } 1552 }
1576 1553
1577 1554
1578 LInstruction* LChunkBuilder::DoMathMinMax(HMathMinMax* instr) { 1555 LInstruction* LChunkBuilder::DoMathMinMax(HMathMinMax* instr) {
1579 LOperand* left = NULL; 1556 LOperand* left = NULL;
1580 LOperand* right = NULL; 1557 LOperand* right = NULL;
1581 if (instr->representation().IsSmiOrInteger32()) { 1558 if (instr->representation().IsSmiOrInteger32()) {
(...skipping 24 matching lines...) Expand all
1606 UseFixedDouble(instr->right(), xmm1) : UseFixed(instr->right(), rdx); 1583 UseFixedDouble(instr->right(), xmm1) : UseFixed(instr->right(), rdx);
1607 LPower* result = new(zone()) LPower(left, right); 1584 LPower* result = new(zone()) LPower(left, right);
1608 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, 1585 return MarkAsCall(DefineFixedDouble(result, xmm3), instr,
1609 CAN_DEOPTIMIZE_EAGERLY); 1586 CAN_DEOPTIMIZE_EAGERLY);
1610 } 1587 }
1611 1588
1612 1589
1613 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { 1590 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) {
1614 ASSERT(instr->representation().IsDouble()); 1591 ASSERT(instr->representation().IsDouble());
1615 ASSERT(instr->global_object()->representation().IsTagged()); 1592 ASSERT(instr->global_object()->representation().IsTagged());
1616 LOperand* global_object = UseFixed(instr->global_object(), arg_reg_1); 1593 LOperand* global_object = UseTempRegister(instr->global_object());
1617 LRandom* result = new(zone()) LRandom(global_object); 1594 LOperand* scratch = TempRegister();
1618 return MarkAsCall(DefineFixedDouble(result, xmm1), instr); 1595 LOperand* scratch2 = TempRegister();
1596 LOperand* scratch3 = TempRegister();
1597 LRandom* result = new(zone()) LRandom(
1598 global_object, scratch, scratch2, scratch3);
1599 return DefineFixedDouble(result, xmm1);
1619 } 1600 }
1620 1601
1621 1602
1622 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1603 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1623 ASSERT(instr->left()->representation().IsTagged()); 1604 ASSERT(instr->left()->representation().IsTagged());
1624 ASSERT(instr->right()->representation().IsTagged()); 1605 ASSERT(instr->right()->representation().IsTagged());
1625 LOperand* left = UseFixed(instr->left(), rdx); 1606 LOperand* left = UseFixed(instr->left(), rdx);
1626 LOperand* right = UseFixed(instr->right(), rax); 1607 LOperand* right = UseFixed(instr->right(), rax);
1627 LCmpT* result = new(zone()) LCmpT(left, right); 1608 LCmpT* result = new(zone()) LCmpT(left, right);
1628 return MarkAsCall(DefineFixed(result, rax), instr); 1609 return MarkAsCall(DefineFixed(result, rax), instr);
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
2544 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2525 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2545 LOperand* object = UseRegister(instr->object()); 2526 LOperand* object = UseRegister(instr->object());
2546 LOperand* index = UseTempRegister(instr->index()); 2527 LOperand* index = UseTempRegister(instr->index());
2547 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2528 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2548 } 2529 }
2549 2530
2550 2531
2551 } } // namespace v8::internal 2532 } } // namespace v8::internal
2552 2533
2553 #endif // V8_TARGET_ARCH_X64 2534 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698