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

Side by Side Diff: src/ia32/lithium-ia32.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/hydrogen-instructions.cc ('k') | src/mips/lithium-mips.cc » ('j') | 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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 LOperand* divisor = UseRegister(instr->right()); 1348 LOperand* divisor = UseRegister(instr->right());
1349 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); 1349 LDivI* result = new(zone()) LDivI(dividend, divisor, temp);
1350 return AssignEnvironment(DefineFixed(result, eax)); 1350 return AssignEnvironment(DefineFixed(result, eax));
1351 } else { 1351 } else {
1352 ASSERT(instr->representation().IsTagged()); 1352 ASSERT(instr->representation().IsTagged());
1353 return DoArithmeticT(Token::DIV, instr); 1353 return DoArithmeticT(Token::DIV, instr);
1354 } 1354 }
1355 } 1355 }
1356 1356
1357 1357
1358 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) {
1359 UNIMPLEMENTED();
1360 return NULL;
1361 }
1362
1363
1364 LInstruction* LChunkBuilder::DoMod(HMod* instr) { 1358 LInstruction* LChunkBuilder::DoMod(HMod* instr) {
1365 if (instr->representation().IsInteger32()) { 1359 if (instr->representation().IsInteger32()) {
1366 ASSERT(instr->left()->representation().IsInteger32()); 1360 ASSERT(instr->left()->representation().IsInteger32());
1367 ASSERT(instr->right()->representation().IsInteger32()); 1361 ASSERT(instr->right()->representation().IsInteger32());
1368 1362
1369 LInstruction* result; 1363 LInstruction* result;
1370 if (instr->HasPowerOf2Divisor()) { 1364 if (instr->HasPowerOf2Divisor()) {
1371 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); 1365 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero));
1372 LOperand* value = UseRegisterAtStart(instr->left()); 1366 LOperand* value = UseRegisterAtStart(instr->left());
1373 LModI* mod = 1367 LModI* mod =
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2442 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2449 LOperand* object = UseRegister(instr->object()); 2443 LOperand* object = UseRegister(instr->object());
2450 LOperand* index = UseTempRegister(instr->index()); 2444 LOperand* index = UseTempRegister(instr->index());
2451 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2445 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2452 } 2446 }
2453 2447
2454 2448
2455 } } // namespace v8::internal 2449 } } // namespace v8::internal
2456 2450
2457 #endif // V8_TARGET_ARCH_IA32 2451 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698