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

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
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 4589 matching lines...) Expand 10 before | Expand all | Expand 10 after
4600 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0, 4600 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0,
4601 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1, 4601 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1,
4602 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2, 4602 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2,
4603 ALLOCATE_DOUBLE_ALIGNED = 1 << 3 4603 ALLOCATE_DOUBLE_ALIGNED = 1 << 3
4604 }; 4604 };
4605 4605
4606 HAllocate(HValue* context, HValue* size, HType type, Flags flags) 4606 HAllocate(HValue* context, HValue* size, HType type, Flags flags)
4607 : type_(type), 4607 : type_(type),
4608 flags_(flags) { 4608 flags_(flags) {
4609 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented 4609 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented
4610 ASSERT((flags & CAN_ALLOCATE_IN_OLD_POINTER_SPACE) == 0); // unimplemented
4611 SetOperandAt(0, context); 4610 SetOperandAt(0, context);
4612 SetOperandAt(1, size); 4611 SetOperandAt(1, size);
4613 set_representation(Representation::Tagged()); 4612 set_representation(Representation::Tagged());
4614 SetGVNFlag(kChangesNewSpacePromotion); 4613 SetGVNFlag(kChangesNewSpacePromotion);
4615 } 4614 }
4616 4615
4617 HValue* context() { return OperandAt(0); } 4616 HValue* context() { return OperandAt(0); }
4618 HValue* size() { return OperandAt(1); } 4617 HValue* size() { return OperandAt(1); }
4619 4618
4620 virtual Representation RequiredInputRepresentation(int index) { 4619 virtual Representation RequiredInputRepresentation(int index) {
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
6143 virtual bool IsDeletable() const { return true; } 6142 virtual bool IsDeletable() const { return true; }
6144 }; 6143 };
6145 6144
6146 6145
6147 #undef DECLARE_INSTRUCTION 6146 #undef DECLARE_INSTRUCTION
6148 #undef DECLARE_CONCRETE_INSTRUCTION 6147 #undef DECLARE_CONCRETE_INSTRUCTION
6149 6148
6150 } } // namespace v8::internal 6149 } } // namespace v8::internal
6151 6150
6152 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6151 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698