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

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

Issue 12051058: Allow monomorphic loads when static type is known. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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') | test/mjsunit/compiler/property-static.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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 } 564 }
565 stream->Add("]"); 565 stream->Add("]");
566 } 566 }
567 567
568 568
569 void HValue::PrintNameTo(StringStream* stream) { 569 void HValue::PrintNameTo(StringStream* stream) {
570 stream->Add("%s%d", representation_.Mnemonic(), id()); 570 stream->Add("%s%d", representation_.Mnemonic(), id());
571 } 571 }
572 572
573 573
574 bool HValue::HasMonomorphicJSObjectType() {
575 return !GetMonomorphicJSObjectMap().is_null();
576 }
577
578
574 bool HValue::UpdateInferredType() { 579 bool HValue::UpdateInferredType() {
575 HType type = CalculateInferredType(); 580 HType type = CalculateInferredType();
576 bool result = (!type.Equals(type_)); 581 bool result = (!type.Equals(type_));
577 type_ = type; 582 type_ = type;
578 return result; 583 return result;
579 } 584 }
580 585
581 586
582 void HValue::RegisterUse(int index, HValue* new_value) { 587 void HValue::RegisterUse(int index, HValue* new_value) {
583 HValue* old_value = OperandAt(index); 588 HValue* old_value = OperandAt(index);
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2834 2839
2835 2840
2836 void HCheckFunction::Verify() { 2841 void HCheckFunction::Verify() {
2837 HInstruction::Verify(); 2842 HInstruction::Verify();
2838 ASSERT(HasNoUses()); 2843 ASSERT(HasNoUses());
2839 } 2844 }
2840 2845
2841 #endif 2846 #endif
2842 2847
2843 } } // namespace v8::internal 2848 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | test/mjsunit/compiler/property-static.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698