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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/hydrogen-instructions.h » ('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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 LOperand* right = UseFixed(instr->right(), r0); 1288 LOperand* right = UseFixed(instr->right(), r0);
1289 LArithmeticT* result = new(zone()) LArithmeticT(instr->op(), left, right); 1289 LArithmeticT* result = new(zone()) LArithmeticT(instr->op(), left, right);
1290 return MarkAsCall(DefineFixed(result, r0), instr); 1290 return MarkAsCall(DefineFixed(result, r0), instr);
1291 } 1291 }
1292 } 1292 }
1293 1293
1294 1294
1295 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) { 1295 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) {
1296 ASSERT(instr->value()->representation().IsInteger32()); 1296 ASSERT(instr->value()->representation().IsInteger32());
1297 ASSERT(instr->representation().IsInteger32()); 1297 ASSERT(instr->representation().IsInteger32());
1298 if (instr->HasNoUses()) return NULL;
1298 LOperand* value = UseRegisterAtStart(instr->value()); 1299 LOperand* value = UseRegisterAtStart(instr->value());
1299 return DefineAsRegister(new(zone()) LBitNotI(value)); 1300 return DefineAsRegister(new(zone()) LBitNotI(value));
1300 } 1301 }
1301 1302
1302 1303
1303 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { 1304 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) {
1304 if (instr->representation().IsDouble()) { 1305 if (instr->representation().IsDouble()) {
1305 return DoArithmeticD(Token::DIV, instr); 1306 return DoArithmeticD(Token::DIV, instr);
1306 } else if (instr->representation().IsInteger32()) { 1307 } else if (instr->representation().IsInteger32()) {
1307 // TODO(1042) The fixed register allocation 1308 // TODO(1042) The fixed register allocation
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 2330
2330 2331
2331 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2332 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2332 LOperand* object = UseRegister(instr->object()); 2333 LOperand* object = UseRegister(instr->object());
2333 LOperand* index = UseRegister(instr->index()); 2334 LOperand* index = UseRegister(instr->index());
2334 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2335 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2335 } 2336 }
2336 2337
2337 2338
2338 } } // namespace v8::internal 2339 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698