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

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

Issue 9107006: Port Math.random change to MIPS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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/mips/lithium-mips.h ('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 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
11 // with the distribution. 11 // with the distribution.
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 LOperand* right = exponent_type.IsDouble() ? 1421 LOperand* right = exponent_type.IsDouble() ?
1422 UseFixedDouble(instr->right(), f4) : 1422 UseFixedDouble(instr->right(), f4) :
1423 UseFixed(instr->right(), a2); 1423 UseFixed(instr->right(), a2);
1424 LPower* result = new LPower(left, right); 1424 LPower* result = new LPower(left, right);
1425 return MarkAsCall(DefineFixedDouble(result, f0), 1425 return MarkAsCall(DefineFixedDouble(result, f0),
1426 instr, 1426 instr,
1427 CAN_DEOPTIMIZE_EAGERLY); 1427 CAN_DEOPTIMIZE_EAGERLY);
1428 } 1428 }
1429 1429
1430 1430
1431 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) {
1432 ASSERT(instr->representation().IsDouble());
1433 ASSERT(instr->global_object()->representation().IsTagged());
1434 LOperand* global_object = UseFixed(instr->global_object(), a0);
1435 LRandom* result = new LRandom(global_object);
1436 return MarkAsCall(DefineFixedDouble(result, f0), instr);
1437 }
1438
1439
1431 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1440 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1432 Representation r = instr->GetInputRepresentation(); 1441 Representation r = instr->GetInputRepresentation();
1433 ASSERT(instr->left()->representation().IsTagged()); 1442 ASSERT(instr->left()->representation().IsTagged());
1434 ASSERT(instr->right()->representation().IsTagged()); 1443 ASSERT(instr->right()->representation().IsTagged());
1435 LOperand* left = UseFixed(instr->left(), a1); 1444 LOperand* left = UseFixed(instr->left(), a1);
1436 LOperand* right = UseFixed(instr->right(), a0); 1445 LOperand* right = UseFixed(instr->right(), a0);
1437 LCmpT* result = new LCmpT(left, right); 1446 LCmpT* result = new LCmpT(left, right);
1438 return MarkAsCall(DefineFixed(result, v0), instr); 1447 return MarkAsCall(DefineFixed(result, v0), instr);
1439 } 1448 }
1440 1449
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 2265
2257 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2266 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2258 LOperand* key = UseRegisterAtStart(instr->key()); 2267 LOperand* key = UseRegisterAtStart(instr->key());
2259 LOperand* object = UseRegisterAtStart(instr->object()); 2268 LOperand* object = UseRegisterAtStart(instr->object());
2260 LIn* result = new LIn(key, object); 2269 LIn* result = new LIn(key, object);
2261 return MarkAsCall(DefineFixed(result, v0), instr); 2270 return MarkAsCall(DefineFixed(result, v0), instr);
2262 } 2271 }
2263 2272
2264 2273
2265 } } // namespace v8::internal 2274 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698