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

Side by Side Diff: src/hydrogen.cc

Issue 8426005: Merge IR classes for different bitwise operations AND, OR and XOR into one class. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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/arm/lithium-arm.cc ('k') | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5601 matching lines...) Expand 10 before | Expand all | Expand 10 after
5612 case Token::MUL: 5612 case Token::MUL:
5613 instr = new(zone()) HMul(context, left, right); 5613 instr = new(zone()) HMul(context, left, right);
5614 break; 5614 break;
5615 case Token::MOD: 5615 case Token::MOD:
5616 instr = new(zone()) HMod(context, left, right); 5616 instr = new(zone()) HMod(context, left, right);
5617 break; 5617 break;
5618 case Token::DIV: 5618 case Token::DIV:
5619 instr = new(zone()) HDiv(context, left, right); 5619 instr = new(zone()) HDiv(context, left, right);
5620 break; 5620 break;
5621 case Token::BIT_XOR: 5621 case Token::BIT_XOR:
5622 instr = new(zone()) HBitXor(context, left, right);
5623 break;
5624 case Token::BIT_AND: 5622 case Token::BIT_AND:
5625 instr = new(zone()) HBitAnd(context, left, right);
5626 break;
5627 case Token::BIT_OR: 5623 case Token::BIT_OR:
5628 instr = new(zone()) HBitOr(context, left, right); 5624 instr = new(zone()) HBitwise(expr->op(), context, left, right);
5629 break; 5625 break;
5630 case Token::SAR: 5626 case Token::SAR:
5631 instr = new(zone()) HSar(context, left, right); 5627 instr = new(zone()) HSar(context, left, right);
5632 break; 5628 break;
5633 case Token::SHR: 5629 case Token::SHR:
5634 instr = new(zone()) HShr(context, left, right); 5630 instr = new(zone()) HShr(context, left, right);
5635 break; 5631 break;
5636 case Token::SHL: 5632 case Token::SHL:
5637 instr = new(zone()) HShl(context, left, right); 5633 instr = new(zone()) HShl(context, left, right);
5638 break; 5634 break;
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
7019 } 7015 }
7020 } 7016 }
7021 7017
7022 #ifdef DEBUG 7018 #ifdef DEBUG
7023 if (graph_ != NULL) graph_->Verify(false); // No full verify. 7019 if (graph_ != NULL) graph_->Verify(false); // No full verify.
7024 if (allocator_ != NULL) allocator_->Verify(); 7020 if (allocator_ != NULL) allocator_->Verify();
7025 #endif 7021 #endif
7026 } 7022 }
7027 7023
7028 } } // namespace v8::internal 7024 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698