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

Side by Side Diff: src/hydrogen.cc

Issue 22964003: Merged r16082 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Created 7 years, 4 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/version.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 4462 matching lines...) Expand 10 before | Expand all | Expand 10 after
4473 constant = HConstant::cast(add->left()); 4473 constant = HConstant::cast(add->left());
4474 } else if (add->right()->IsConstant()) { 4474 } else if (add->right()->IsConstant()) {
4475 subexpression = add->left(); 4475 subexpression = add->left();
4476 constant = HConstant::cast(add->right()); 4476 constant = HConstant::cast(add->right());
4477 } else { 4477 } else {
4478 return; 4478 return;
4479 } 4479 }
4480 } else if (index->IsSub()) { 4480 } else if (index->IsSub()) {
4481 sign = -1; 4481 sign = -1;
4482 HSub* sub = HSub::cast(index); 4482 HSub* sub = HSub::cast(index);
4483 if (sub->left()->IsConstant()) { 4483 if (sub->right()->IsConstant()) {
4484 subexpression = sub->right();
4485 constant = HConstant::cast(sub->left());
4486 } else if (sub->right()->IsConstant()) {
4487 subexpression = sub->left(); 4484 subexpression = sub->left();
4488 constant = HConstant::cast(sub->right()); 4485 constant = HConstant::cast(sub->right());
4489 } else { 4486 } else {
4490 return; 4487 return;
4491 } 4488 }
4492 } else { 4489 } else {
4493 return; 4490 return;
4494 } 4491 }
4495 4492
4496 if (!constant->HasInteger32Value()) return; 4493 if (!constant->HasInteger32Value()) return;
(...skipping 7116 matching lines...) Expand 10 before | Expand all | Expand 10 after
11613 } 11610 }
11614 } 11611 }
11615 11612
11616 #ifdef DEBUG 11613 #ifdef DEBUG
11617 if (graph_ != NULL) graph_->Verify(false); // No full verify. 11614 if (graph_ != NULL) graph_->Verify(false); // No full verify.
11618 if (allocator_ != NULL) allocator_->Verify(); 11615 if (allocator_ != NULL) allocator_->Verify();
11619 #endif 11616 #endif
11620 } 11617 }
11621 11618
11622 } } // namespace v8::internal 11619 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698