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

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

Issue 14576005: Adapt hydrogen-based Array constructor to also support InternalArray and function call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adapt to bugfix for 244461 Created 7 years, 6 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 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after
5185 } 5185 }
5186 5186
5187 static HObjectAccess ForFixedArrayLength() { 5187 static HObjectAccess ForFixedArrayLength() {
5188 return HObjectAccess(kArrayLengths, FixedArray::kLengthOffset); 5188 return HObjectAccess(kArrayLengths, FixedArray::kLengthOffset);
5189 } 5189 }
5190 5190
5191 static HObjectAccess ForPropertiesPointer() { 5191 static HObjectAccess ForPropertiesPointer() {
5192 return HObjectAccess(kInobject, JSObject::kPropertiesOffset); 5192 return HObjectAccess(kInobject, JSObject::kPropertiesOffset);
5193 } 5193 }
5194 5194
5195 static HObjectAccess ForPrototypeOrInitialMap() {
5196 return HObjectAccess(kInobject, JSFunction::kPrototypeOrInitialMapOffset);
5197 }
5198
5195 static HObjectAccess ForMap() { 5199 static HObjectAccess ForMap() {
5196 return HObjectAccess(kMaps, JSObject::kMapOffset); 5200 return HObjectAccess(kMaps, JSObject::kMapOffset);
5197 } 5201 }
5198 5202
5199 static HObjectAccess ForAllocationSitePayload() { 5203 static HObjectAccess ForAllocationSitePayload() {
5200 return HObjectAccess(kInobject, AllocationSiteInfo::kPayloadOffset); 5204 return HObjectAccess(kInobject, AllocationSiteInfo::kPayloadOffset);
5201 } 5205 }
5202 5206
5203 // Create an access to an offset in a fixed array header. 5207 // Create an access to an offset in a fixed array header.
5204 static HObjectAccess ForFixedArrayHeader(int offset); 5208 static HObjectAccess ForFixedArrayHeader(int offset);
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
6500 virtual bool IsDeletable() const { return true; } 6504 virtual bool IsDeletable() const { return true; }
6501 }; 6505 };
6502 6506
6503 6507
6504 #undef DECLARE_INSTRUCTION 6508 #undef DECLARE_INSTRUCTION
6505 #undef DECLARE_CONCRETE_INSTRUCTION 6509 #undef DECLARE_CONCRETE_INSTRUCTION
6506 6510
6507 } } // namespace v8::internal 6511 } } // namespace v8::internal
6508 6512
6509 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6513 #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