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

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

Issue 12385014: Hydrogen stubs for array constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: We still generated the arrays with feature flag off. Fixed. Created 7 years, 8 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/ia32/builtins-ia32.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 4930 matching lines...) Expand 10 before | Expand all | Expand 10 after
4941 4941
4942 HAllocate(HValue* context, HValue* size, HType type, Flags flags) 4942 HAllocate(HValue* context, HValue* size, HType type, Flags flags)
4943 : type_(type), 4943 : type_(type),
4944 flags_(flags) { 4944 flags_(flags) {
4945 SetOperandAt(0, context); 4945 SetOperandAt(0, context);
4946 SetOperandAt(1, size); 4946 SetOperandAt(1, size);
4947 set_representation(Representation::Tagged()); 4947 set_representation(Representation::Tagged());
4948 SetGVNFlag(kChangesNewSpacePromotion); 4948 SetGVNFlag(kChangesNewSpacePromotion);
4949 } 4949 }
4950 4950
4951 static Flags DefaultFlags() {
4952 return CAN_ALLOCATE_IN_NEW_SPACE;
4953 }
4954
4955 static Flags DefaultFlags(ElementsKind kind) {
4956 Flags flags = CAN_ALLOCATE_IN_NEW_SPACE;
4957 if (IsFastDoubleElementsKind(kind)) {
4958 flags = static_cast<HAllocate::Flags>(
4959 flags | HAllocate::ALLOCATE_DOUBLE_ALIGNED);
4960 }
4961 return flags;
4962 }
4963
4951 HValue* context() { return OperandAt(0); } 4964 HValue* context() { return OperandAt(0); }
4952 HValue* size() { return OperandAt(1); } 4965 HValue* size() { return OperandAt(1); }
4953 4966
4954 virtual Representation RequiredInputRepresentation(int index) { 4967 virtual Representation RequiredInputRepresentation(int index) {
4955 if (index == 0) { 4968 if (index == 0) {
4956 return Representation::Tagged(); 4969 return Representation::Tagged();
4957 } else { 4970 } else {
4958 return Representation::Integer32(); 4971 return Representation::Integer32();
4959 } 4972 }
4960 } 4973 }
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
6544 virtual bool IsDeletable() const { return true; } 6557 virtual bool IsDeletable() const { return true; }
6545 }; 6558 };
6546 6559
6547 6560
6548 #undef DECLARE_INSTRUCTION 6561 #undef DECLARE_INSTRUCTION
6549 #undef DECLARE_CONCRETE_INSTRUCTION 6562 #undef DECLARE_CONCRETE_INSTRUCTION
6550 6563
6551 } } // namespace v8::internal 6564 } } // namespace v8::internal
6552 6565
6553 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698