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

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

Issue 8896021: MIPS: Port Math.pow inlining to ARM. (Closed)
Patch Set: Created 9 years 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 1399
1400 LInstruction* LChunkBuilder::DoPower(HPower* instr) { 1400 LInstruction* LChunkBuilder::DoPower(HPower* instr) {
1401 ASSERT(instr->representation().IsDouble()); 1401 ASSERT(instr->representation().IsDouble());
1402 // We call a C function for double power. It can't trigger a GC. 1402 // We call a C function for double power. It can't trigger a GC.
1403 // We need to use fixed result register for the call. 1403 // We need to use fixed result register for the call.
1404 Representation exponent_type = instr->right()->representation(); 1404 Representation exponent_type = instr->right()->representation();
1405 ASSERT(instr->left()->representation().IsDouble()); 1405 ASSERT(instr->left()->representation().IsDouble());
1406 LOperand* left = UseFixedDouble(instr->left(), f2); 1406 LOperand* left = UseFixedDouble(instr->left(), f2);
1407 LOperand* right = exponent_type.IsDouble() ? 1407 LOperand* right = exponent_type.IsDouble() ?
1408 UseFixedDouble(instr->right(), f4) : 1408 UseFixedDouble(instr->right(), f4) :
1409 UseFixed(instr->right(), a0); 1409 UseFixed(instr->right(), a2);
1410 LPower* result = new LPower(left, right); 1410 LPower* result = new LPower(left, right);
1411 return MarkAsCall(DefineFixedDouble(result, f6), 1411 return MarkAsCall(DefineFixedDouble(result, f0),
1412 instr, 1412 instr,
1413 CAN_DEOPTIMIZE_EAGERLY); 1413 CAN_DEOPTIMIZE_EAGERLY);
1414 } 1414 }
1415 1415
1416 1416
1417 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1417 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1418 Representation r = instr->GetInputRepresentation(); 1418 Representation r = instr->GetInputRepresentation();
1419 ASSERT(instr->left()->representation().IsTagged()); 1419 ASSERT(instr->left()->representation().IsTagged());
1420 ASSERT(instr->right()->representation().IsTagged()); 1420 ASSERT(instr->right()->representation().IsTagged());
1421 LOperand* left = UseFixed(instr->left(), a1); 1421 LOperand* left = UseFixed(instr->left(), a1);
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 2239
2240 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2240 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2241 LOperand* key = UseRegisterAtStart(instr->key()); 2241 LOperand* key = UseRegisterAtStart(instr->key());
2242 LOperand* object = UseRegisterAtStart(instr->object()); 2242 LOperand* object = UseRegisterAtStart(instr->object());
2243 LIn* result = new LIn(key, object); 2243 LIn* result = new LIn(key, object);
2244 return MarkAsCall(DefineFixed(result, v0), instr); 2244 return MarkAsCall(DefineFixed(result, v0), instr);
2245 } 2245 }
2246 2246
2247 2247
2248 } } // namespace v8::internal 2248 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698