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

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

Issue 153913002: A64: Synchronize with r16756. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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.h ('k') | src/i18n.js » ('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 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 r = Representation::Tagged(); 2521 r = Representation::Tagged();
2522 } 2522 }
2523 } 2523 }
2524 set_representation(r); 2524 set_representation(r);
2525 SetFlag(kUseGVN); 2525 SetFlag(kUseGVN);
2526 } 2526 }
2527 2527
2528 2528
2529 bool HConstant::EmitAtUses() { 2529 bool HConstant::EmitAtUses() {
2530 ASSERT(IsLinked()); 2530 ASSERT(IsLinked());
2531 if (block()->graph()->has_osr()) { 2531 if (block()->graph()->has_osr() &&
2532 return block()->graph()->IsStandardConstant(this); 2532 block()->graph()->IsStandardConstant(this)) {
2533 return true;
2533 } 2534 }
2535 if (UseCount() == 0) return true;
2534 if (IsCell()) return false; 2536 if (IsCell()) return false;
2535 if (representation().IsDouble()) return false; 2537 if (representation().IsDouble()) return false;
2536 return true; 2538 return true;
2537 } 2539 }
2538 2540
2539 2541
2540 HConstant* HConstant::CopyToRepresentation(Representation r, Zone* zone) const { 2542 HConstant* HConstant::CopyToRepresentation(Representation r, Zone* zone) const {
2541 if (r.IsSmi() && !has_smi_value_) return NULL; 2543 if (r.IsSmi() && !has_smi_value_) return NULL;
2542 if (r.IsInteger32() && !has_int32_value_) return NULL; 2544 if (r.IsInteger32() && !has_int32_value_) return NULL;
2543 if (r.IsDouble() && !has_double_value_) return NULL; 2545 if (r.IsDouble() && !has_double_value_) return NULL;
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
4240 break; 4242 break;
4241 case kExternalMemory: 4243 case kExternalMemory:
4242 stream->Add("[external-memory]"); 4244 stream->Add("[external-memory]");
4243 break; 4245 break;
4244 } 4246 }
4245 4247
4246 stream->Add("@%d", offset()); 4248 stream->Add("@%d", offset());
4247 } 4249 }
4248 4250
4249 } } // namespace v8::internal 4251 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698