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

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

Issue 21105006: HasNonSmiUse should ignore tagged uses (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | no next file » | 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 4357 matching lines...) Expand 10 before | Expand all | Expand 10 after
4368 } 4368 }
4369 return rep; 4369 return rep;
4370 } 4370 }
4371 4371
4372 4372
4373 bool HValue::HasNonSmiUse() { 4373 bool HValue::HasNonSmiUse() {
4374 for (HUseIterator it(uses()); !it.Done(); it.Advance()) { 4374 for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
4375 // We check for observed_input_representation elsewhere. 4375 // We check for observed_input_representation elsewhere.
4376 Representation use_rep = 4376 Representation use_rep =
4377 it.value()->RequiredInputRepresentation(it.index()); 4377 it.value()->RequiredInputRepresentation(it.index());
4378 if (!use_rep.IsNone() && !use_rep.IsSmi()) return true; 4378 if (!use_rep.IsNone() &&
4379 !use_rep.IsSmi() &&
4380 !use_rep.IsTagged()) {
4381 return true;
4382 }
4379 } 4383 }
4380 return false; 4384 return false;
4381 } 4385 }
4382 4386
4383 4387
4384 // Node-specific verification code is only included in debug mode. 4388 // Node-specific verification code is only included in debug mode.
4385 #ifdef DEBUG 4389 #ifdef DEBUG
4386 4390
4387 void HPhi::Verify() { 4391 void HPhi::Verify() {
4388 ASSERT(OperandCount() == block()->predecessors()->length()); 4392 ASSERT(OperandCount() == block()->predecessors()->length());
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
4566 break; 4570 break;
4567 case kExternalMemory: 4571 case kExternalMemory:
4568 stream->Add("[external-memory]"); 4572 stream->Add("[external-memory]");
4569 break; 4573 break;
4570 } 4574 }
4571 4575
4572 stream->Add("@%d", offset()); 4576 stream->Add("@%d", offset());
4573 } 4577 }
4574 4578
4575 } } // namespace v8::internal 4579 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698