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

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

Issue 10123007: Optimize ~~(expr) in optimized code. (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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 LArithmeticT* result = 1323 LArithmeticT* result =
1324 new(zone()) LArithmeticT(instr->op(), context, left, right); 1324 new(zone()) LArithmeticT(instr->op(), context, left, right);
1325 return MarkAsCall(DefineFixed(result, eax), instr); 1325 return MarkAsCall(DefineFixed(result, eax), instr);
1326 } 1326 }
1327 } 1327 }
1328 1328
1329 1329
1330 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) { 1330 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) {
1331 ASSERT(instr->value()->representation().IsInteger32()); 1331 ASSERT(instr->value()->representation().IsInteger32());
1332 ASSERT(instr->representation().IsInteger32()); 1332 ASSERT(instr->representation().IsInteger32());
1333 if (instr->HasNoUses()) return NULL;
1333 LOperand* input = UseRegisterAtStart(instr->value()); 1334 LOperand* input = UseRegisterAtStart(instr->value());
1334 LBitNotI* result = new(zone()) LBitNotI(input); 1335 LBitNotI* result = new(zone()) LBitNotI(input);
1335 return DefineSameAsFirst(result); 1336 return DefineSameAsFirst(result);
1336 } 1337 }
1337 1338
1338 1339
1339 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { 1340 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) {
1340 if (instr->representation().IsDouble()) { 1341 if (instr->representation().IsDouble()) {
1341 return DoArithmeticD(Token::DIV, instr); 1342 return DoArithmeticD(Token::DIV, instr);
1342 } else if (instr->representation().IsInteger32()) { 1343 } else if (instr->representation().IsInteger32()) {
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
2441 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2442 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2442 LOperand* object = UseRegister(instr->object()); 2443 LOperand* object = UseRegister(instr->object());
2443 LOperand* index = UseTempRegister(instr->index()); 2444 LOperand* index = UseTempRegister(instr->index());
2444 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2445 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2445 } 2446 }
2446 2447
2447 2448
2448 } } // namespace v8::internal 2449 } } // namespace v8::internal
2449 2450
2450 #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