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

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

Issue 12391057: Better hydrogen printing for the allocate instruction (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.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 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 4654 matching lines...) Expand 10 before | Expand all | Expand 10 after
4665 } 4665 }
4666 4666
4667 bool GuaranteedInNewSpace() const { 4667 bool GuaranteedInNewSpace() const {
4668 return CanAllocateInNewSpace() && !CanAllocateInOldSpace(); 4668 return CanAllocateInNewSpace() && !CanAllocateInOldSpace();
4669 } 4669 }
4670 4670
4671 bool MustAllocateDoubleAligned() const { 4671 bool MustAllocateDoubleAligned() const {
4672 return (flags_ & ALLOCATE_DOUBLE_ALIGNED) != 0; 4672 return (flags_ & ALLOCATE_DOUBLE_ALIGNED) != 0;
4673 } 4673 }
4674 4674
4675 virtual void PrintDataTo(StringStream* stream);
4676
4675 DECLARE_CONCRETE_INSTRUCTION(Allocate) 4677 DECLARE_CONCRETE_INSTRUCTION(Allocate)
4676 4678
4677 private: 4679 private:
4678 HType type_; 4680 HType type_;
4679 Flags flags_; 4681 Flags flags_;
4680 }; 4682 };
4681 4683
4682 4684
4683 inline bool StoringValueNeedsWriteBarrier(HValue* value) { 4685 inline bool StoringValueNeedsWriteBarrier(HValue* value) {
4684 return !value->type().IsBoolean() 4686 return !value->type().IsBoolean()
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
6163 virtual bool IsDeletable() const { return true; } 6165 virtual bool IsDeletable() const { return true; }
6164 }; 6166 };
6165 6167
6166 6168
6167 #undef DECLARE_INSTRUCTION 6169 #undef DECLARE_INSTRUCTION
6168 #undef DECLARE_CONCRETE_INSTRUCTION 6170 #undef DECLARE_CONCRETE_INSTRUCTION
6169 6171
6170 } } // namespace v8::internal 6172 } } // namespace v8::internal
6171 6173
6172 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6174 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698