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

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

Issue 6664001: [Isolates] Merge (7083,7111] from bleeding_edge. (Closed)
Patch Set: Created 9 years, 9 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.h » ('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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 HType type = CalculateInferredType(); 407 HType type = CalculateInferredType();
408 bool result = (!type.Equals(type_)); 408 bool result = (!type.Equals(type_));
409 type_ = type; 409 type_ = type;
410 return result; 410 return result;
411 } 411 }
412 412
413 413
414 void HValue::RegisterUse(int index, HValue* new_value) { 414 void HValue::RegisterUse(int index, HValue* new_value) {
415 HValue* old_value = OperandAt(index); 415 HValue* old_value = OperandAt(index);
416 if (old_value == new_value) return; 416 if (old_value == new_value) return;
417 if (old_value != NULL) { 417 if (old_value != NULL) old_value->uses_.RemoveElement(this);
418 ASSERT(old_value->uses_.Contains(this));
419 old_value->uses_.RemoveElement(this);
420 }
421 if (new_value != NULL) { 418 if (new_value != NULL) {
422 new_value->uses_.Add(this); 419 new_value->uses_.Add(this);
423 } 420 }
424 } 421 }
425 422
426 423
427 void HValue::AddNewRange(Range* r) { 424 void HValue::AddNewRange(Range* r) {
428 if (!HasRange()) ComputeInitialRange(); 425 if (!HasRange()) ComputeInitialRange();
429 if (!HasRange()) range_ = new Range(); 426 if (!HasRange()) range_ = new Range();
430 ASSERT(HasRange()); 427 ASSERT(HasRange());
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 1499
1503 1500
1504 void HCheckPrototypeMaps::Verify() { 1501 void HCheckPrototypeMaps::Verify() {
1505 HInstruction::Verify(); 1502 HInstruction::Verify();
1506 ASSERT(HasNoUses()); 1503 ASSERT(HasNoUses());
1507 } 1504 }
1508 1505
1509 #endif 1506 #endif
1510 1507
1511 } } // namespace v8::internal 1508 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698