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

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

Issue 7014033: Support conversion of clamped double values for pixel arrays in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 7 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/ia32/lithium-codegen-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 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 #define MAKE_CASE(type) case k##type: return #type; 349 #define MAKE_CASE(type) case k##type: return #type;
350 HYDROGEN_CONCRETE_INSTRUCTION_LIST(MAKE_CASE) 350 HYDROGEN_CONCRETE_INSTRUCTION_LIST(MAKE_CASE)
351 #undef MAKE_CASE 351 #undef MAKE_CASE
352 case kPhi: return "Phi"; 352 case kPhi: return "Phi";
353 default: return ""; 353 default: return "";
354 } 354 }
355 } 355 }
356 356
357 357
358 void HValue::SetOperandAt(int index, HValue* value) { 358 void HValue::SetOperandAt(int index, HValue* value) {
359 ASSERT(value == NULL || !value->representation().IsNone());
360 RegisterUse(index, value); 359 RegisterUse(index, value);
361 InternalSetOperandAt(index, value); 360 InternalSetOperandAt(index, value);
362 } 361 }
363 362
364 363
365 void HValue::DeleteAndReplaceWith(HValue* other) { 364 void HValue::DeleteAndReplaceWith(HValue* other) {
366 // We replace all uses first, so Delete can assert that there are none. 365 // We replace all uses first, so Delete can assert that there are none.
367 if (other != NULL) ReplaceAllUsesWith(other); 366 if (other != NULL) ReplaceAllUsesWith(other);
368 ASSERT(HasNoUses()); 367 ASSERT(HasNoUses());
369 ClearOperands(); 368 ClearOperands();
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 HInstruction* cur = cur_block->first(); 582 HInstruction* cur = cur_block->first();
584 while (cur != NULL) { 583 while (cur != NULL) {
585 ASSERT(cur != this); // We should reach other_operand before! 584 ASSERT(cur != this); // We should reach other_operand before!
586 if (cur == other_operand) break; 585 if (cur == other_operand) break;
587 cur = cur->next(); 586 cur = cur->next();
588 } 587 }
589 // Must reach other operand in the same block! 588 // Must reach other operand in the same block!
590 ASSERT(cur == other_operand); 589 ASSERT(cur == other_operand);
591 } 590 }
592 } else { 591 } else {
592 // If the following assert fires, you may have forgotten an
593 // AddInstruction.
593 ASSERT(other_block->Dominates(cur_block)); 594 ASSERT(other_block->Dominates(cur_block));
594 } 595 }
595 } 596 }
596 597
597 // Verify that instructions that may have side-effects are followed 598 // Verify that instructions that may have side-effects are followed
598 // by a simulate instruction. 599 // by a simulate instruction.
599 if (HasSideEffects() && !IsOsrEntry()) { 600 if (HasSideEffects() && !IsOsrEntry()) {
600 ASSERT(next()->IsSimulate()); 601 ASSERT(next()->IsSimulate());
601 } 602 }
602 603
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 1743
1743 1744
1744 void HCheckPrototypeMaps::Verify() { 1745 void HCheckPrototypeMaps::Verify() {
1745 HInstruction::Verify(); 1746 HInstruction::Verify();
1746 ASSERT(HasNoUses()); 1747 ASSERT(HasNoUses());
1747 } 1748 }
1748 1749
1749 #endif 1750 #endif
1750 1751
1751 } } // namespace v8::internal 1752 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698