| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index 78bc5bb7089322c6e93a574b137ceb53d0f72e08..9ceaa2696c4de629c8b14c0d2fac6bc5032dd8a2 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -275,7 +275,8 @@ void LStoreCodeEntry::PrintDataTo(StringStream* stream) {
|
| void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
|
| stream->Add(" = ");
|
| base_object()->PrintTo(stream);
|
| - stream->Add(" + %d", offset());
|
| + stream->Add(" + ");
|
| + offset()->PrintTo(stream);
|
| }
|
|
|
|
|
| @@ -1116,11 +1117,11 @@ LInstruction* LChunkBuilder::DoStoreCodeEntry(
|
|
|
|
|
| LInstruction* LChunkBuilder::DoInnerAllocatedObject(
|
| - HInnerAllocatedObject* inner_object) {
|
| - LOperand* base_object = UseRegisterAtStart(inner_object->base_object());
|
| - LInnerAllocatedObject* result =
|
| - new(zone()) LInnerAllocatedObject(base_object);
|
| - return DefineAsRegister(result);
|
| + HInnerAllocatedObject* instr) {
|
| + LOperand* base_object = UseRegisterAtStart(instr->base_object());
|
| + LOperand* offset = UseRegisterOrConstantAtStart(instr->offset());
|
| + return DefineAsRegister(
|
| + new(zone()) LInnerAllocatedObject(base_object, offset));
|
| }
|
|
|
|
|
| @@ -1186,9 +1187,6 @@ LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
|
| case kMathRound: return DoMathRound(instr);
|
| case kMathAbs: return DoMathAbs(instr);
|
| case kMathLog: return DoMathLog(instr);
|
| - case kMathSin: return DoMathSin(instr);
|
| - case kMathCos: return DoMathCos(instr);
|
| - case kMathTan: return DoMathTan(instr);
|
| case kMathExp: return DoMathExp(instr);
|
| case kMathSqrt: return DoMathSqrt(instr);
|
| case kMathPowHalf: return DoMathPowHalf(instr);
|
| @@ -1230,27 +1228,6 @@ LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoMathSin(HUnaryMathOperation* instr) {
|
| - LOperand* input = UseFixedDouble(instr->value(), xmm1);
|
| - LMathSin* result = new(zone()) LMathSin(input);
|
| - return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| -}
|
| -
|
| -
|
| -LInstruction* LChunkBuilder::DoMathCos(HUnaryMathOperation* instr) {
|
| - LOperand* input = UseFixedDouble(instr->value(), xmm1);
|
| - LMathCos* result = new(zone()) LMathCos(input);
|
| - return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| -}
|
| -
|
| -
|
| -LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) {
|
| - LOperand* input = UseFixedDouble(instr->value(), xmm1);
|
| - LMathTan* result = new(zone()) LMathTan(input);
|
| - return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
|
| ASSERT(instr->representation().IsDouble());
|
| ASSERT(instr->value()->representation().IsDouble());
|
| @@ -2266,7 +2243,7 @@ LInstruction* LChunkBuilder::DoTransitionElementsKind(
|
| object, NULL, new_map_reg, temp_reg);
|
| return result;
|
| } else {
|
| - LOperand* context = UseAny(instr->context());
|
| + LOperand* context = UseFixed(instr->context(), rsi);
|
| LTransitionElementsKind* result =
|
| new(zone()) LTransitionElementsKind(object, context, NULL, NULL);
|
| return AssignPointerMap(result);
|
|
|