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

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

Issue 10190007: Revert r11420 because Win32 compilation was broken. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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/utils.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 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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 LOperand* divisor = UseRegister(instr->right()); 1298 LOperand* divisor = UseRegister(instr->right());
1299 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); 1299 LDivI* result = new(zone()) LDivI(dividend, divisor, temp);
1300 return AssignEnvironment(DefineFixed(result, rax)); 1300 return AssignEnvironment(DefineFixed(result, rax));
1301 } else { 1301 } else {
1302 ASSERT(instr->representation().IsTagged()); 1302 ASSERT(instr->representation().IsTagged());
1303 return DoArithmeticT(Token::DIV, instr); 1303 return DoArithmeticT(Token::DIV, instr);
1304 } 1304 }
1305 } 1305 }
1306 1306
1307 1307
1308 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) {
1309 UNIMPLEMENTED();
1310 return NULL;
1311 }
1312
1313
1314 LInstruction* LChunkBuilder::DoMod(HMod* instr) { 1308 LInstruction* LChunkBuilder::DoMod(HMod* instr) {
1315 if (instr->representation().IsInteger32()) { 1309 if (instr->representation().IsInteger32()) {
1316 ASSERT(instr->left()->representation().IsInteger32()); 1310 ASSERT(instr->left()->representation().IsInteger32());
1317 ASSERT(instr->right()->representation().IsInteger32()); 1311 ASSERT(instr->right()->representation().IsInteger32());
1318 1312
1319 LInstruction* result; 1313 LInstruction* result;
1320 if (instr->HasPowerOf2Divisor()) { 1314 if (instr->HasPowerOf2Divisor()) {
1321 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); 1315 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero));
1322 LOperand* value = UseRegisterAtStart(instr->left()); 1316 LOperand* value = UseRegisterAtStart(instr->left());
1323 LModI* mod = 1317 LModI* mod =
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2332 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2326 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2333 LOperand* object = UseRegister(instr->object()); 2327 LOperand* object = UseRegister(instr->object());
2334 LOperand* index = UseTempRegister(instr->index()); 2328 LOperand* index = UseTempRegister(instr->index());
2335 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2329 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2336 } 2330 }
2337 2331
2338 2332
2339 } } // namespace v8::internal 2333 } } // namespace v8::internal
2340 2334
2341 #endif // V8_TARGET_ARCH_X64 2335 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698