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

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

Issue 12314155: Allow direct allocation in old pointer space. (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 | « src/hydrogen.cc ('k') | 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 4611 matching lines...) Expand 10 before | Expand all | Expand 10 after
4622 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0, 4622 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0,
4623 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1, 4623 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1,
4624 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2, 4624 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2,
4625 ALLOCATE_DOUBLE_ALIGNED = 1 << 3 4625 ALLOCATE_DOUBLE_ALIGNED = 1 << 3
4626 }; 4626 };
4627 4627
4628 HAllocate(HValue* context, HValue* size, HType type, Flags flags) 4628 HAllocate(HValue* context, HValue* size, HType type, Flags flags)
4629 : type_(type), 4629 : type_(type),
4630 flags_(flags) { 4630 flags_(flags) {
4631 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented 4631 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented
4632 ASSERT((flags & CAN_ALLOCATE_IN_OLD_POINTER_SPACE) == 0); // unimplemented
4633 SetOperandAt(0, context); 4632 SetOperandAt(0, context);
4634 SetOperandAt(1, size); 4633 SetOperandAt(1, size);
4635 set_representation(Representation::Tagged()); 4634 set_representation(Representation::Tagged());
4636 SetGVNFlag(kChangesNewSpacePromotion); 4635 SetGVNFlag(kChangesNewSpacePromotion);
4637 } 4636 }
4638 4637
4639 HValue* context() { return OperandAt(0); } 4638 HValue* context() { return OperandAt(0); }
4640 HValue* size() { return OperandAt(1); } 4639 HValue* size() { return OperandAt(1); }
4641 4640
4642 virtual Representation RequiredInputRepresentation(int index) { 4641 virtual Representation RequiredInputRepresentation(int index) {
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
6167 virtual bool IsDeletable() const { return true; } 6166 virtual bool IsDeletable() const { return true; }
6168 }; 6167 };
6169 6168
6170 6169
6171 #undef DECLARE_INSTRUCTION 6170 #undef DECLARE_INSTRUCTION
6172 #undef DECLARE_CONCRETE_INSTRUCTION 6171 #undef DECLARE_CONCRETE_INSTRUCTION
6173 6172
6174 } } // namespace v8::internal 6173 } } // namespace v8::internal
6175 6174
6176 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6175 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698