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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 18037002: Clean up the usage of V8_TARGET_ARCH_${arch} and V8_HOST_ARCH_${arch} (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 6 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.cc ('k') | src/ia32/assembler-ia32.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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 HValue* new_left = SimplifiedDividendForMathFloorOfDiv(left); 1552 HValue* new_left = SimplifiedDividendForMathFloorOfDiv(left);
1553 if (new_left == NULL && 1553 if (new_left == NULL &&
1554 hdiv->observed_input_representation(1).IsSmiOrInteger32()) { 1554 hdiv->observed_input_representation(1).IsSmiOrInteger32()) {
1555 new_left = new(block()->zone()) 1555 new_left = new(block()->zone())
1556 HChange(left, Representation::Integer32(), false, false); 1556 HChange(left, Representation::Integer32(), false, false);
1557 HChange::cast(new_left)->InsertBefore(this); 1557 HChange::cast(new_left)->InsertBefore(this);
1558 } 1558 }
1559 HValue* new_right = 1559 HValue* new_right =
1560 LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(right); 1560 LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(right);
1561 if (new_right == NULL && 1561 if (new_right == NULL &&
1562 #ifdef V8_TARGET_ARCH_ARM 1562 #if V8_TARGET_ARCH_ARM
1563 CpuFeatures::IsSupported(SUDIV) && 1563 CpuFeatures::IsSupported(SUDIV) &&
1564 #endif 1564 #endif
1565 hdiv->observed_input_representation(2).IsSmiOrInteger32()) { 1565 hdiv->observed_input_representation(2).IsSmiOrInteger32()) {
1566 new_right = new(block()->zone()) 1566 new_right = new(block()->zone())
1567 HChange(right, Representation::Integer32(), false, false); 1567 HChange(right, Representation::Integer32(), false, false);
1568 HChange::cast(new_right)->InsertBefore(this); 1568 HChange::cast(new_right)->InsertBefore(this);
1569 } 1569 }
1570 1570
1571 // Return if left or right are not optimizable. 1571 // Return if left or right are not optimizable.
1572 if ((new_left == NULL) || (new_right == NULL)) return this; 1572 if ((new_left == NULL) || (new_right == NULL)) return this;
(...skipping 2305 matching lines...) Expand 10 before | Expand all | Expand 10 after
3878 case kBackingStore: 3878 case kBackingStore:
3879 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3879 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3880 stream->Add("[backing-store]"); 3880 stream->Add("[backing-store]");
3881 break; 3881 break;
3882 } 3882 }
3883 3883
3884 stream->Add("@%d", offset()); 3884 stream->Add("@%d", offset());
3885 } 3885 }
3886 3886
3887 } } // namespace v8::internal 3887 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698