| OLD | NEW | 
|---|
| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1156 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1156 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 
| 1157   LOperand* function = UseFixed(instr->function(), rdi); | 1157   LOperand* function = UseFixed(instr->function(), rdi); | 
| 1158   argument_count_ -= instr->argument_count(); | 1158   argument_count_ -= instr->argument_count(); | 
| 1159   LInvokeFunction* result = new(zone()) LInvokeFunction(function); | 1159   LInvokeFunction* result = new(zone()) LInvokeFunction(function); | 
| 1160   return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1160   return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 
| 1161 } | 1161 } | 
| 1162 | 1162 | 
| 1163 | 1163 | 
| 1164 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1164 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 
| 1165   BuiltinFunctionId op = instr->op(); | 1165   BuiltinFunctionId op = instr->op(); | 
| 1166   if (op == kMathLog || op == kMathSin || op == kMathCos) { | 1166   if (op == kMathLog || op == kMathSin || op == kMathCos || op == kMathTan) { | 
| 1167     LOperand* input = UseFixedDouble(instr->value(), xmm1); | 1167     LOperand* input = UseFixedDouble(instr->value(), xmm1); | 
| 1168     LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); | 1168     LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); | 
| 1169     return MarkAsCall(DefineFixedDouble(result, xmm1), instr); | 1169     return MarkAsCall(DefineFixedDouble(result, xmm1), instr); | 
| 1170   } else { | 1170   } else { | 
| 1171     LOperand* input = UseRegisterAtStart(instr->value()); | 1171     LOperand* input = UseRegisterAtStart(instr->value()); | 
| 1172     LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); | 1172     LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); | 
| 1173     switch (op) { | 1173     switch (op) { | 
| 1174       case kMathAbs: | 1174       case kMathAbs: | 
| 1175         return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1175         return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 
| 1176       case kMathFloor: | 1176       case kMathFloor: | 
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2301 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2301 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
| 2302   LOperand* object = UseRegister(instr->object()); | 2302   LOperand* object = UseRegister(instr->object()); | 
| 2303   LOperand* index = UseTempRegister(instr->index()); | 2303   LOperand* index = UseTempRegister(instr->index()); | 
| 2304   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2304   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
| 2305 } | 2305 } | 
| 2306 | 2306 | 
| 2307 | 2307 | 
| 2308 } }  // namespace v8::internal | 2308 } }  // namespace v8::internal | 
| 2309 | 2309 | 
| 2310 #endif  // V8_TARGET_ARCH_X64 | 2310 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|