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

Side by Side Diff: src/objects.h

Issue 175045: First step in allocating objects in generated code on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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/arm/macro-assembler-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize; 2884 static const int kInstanceAttributesOffset = kInstanceSizesOffset + kIntSize;
2885 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize; 2885 static const int kPrototypeOffset = kInstanceAttributesOffset + kIntSize;
2886 static const int kConstructorOffset = kPrototypeOffset + kPointerSize; 2886 static const int kConstructorOffset = kPrototypeOffset + kPointerSize;
2887 static const int kInstanceDescriptorsOffset = 2887 static const int kInstanceDescriptorsOffset =
2888 kConstructorOffset + kPointerSize; 2888 kConstructorOffset + kPointerSize;
2889 static const int kCodeCacheOffset = kInstanceDescriptorsOffset + kPointerSize; 2889 static const int kCodeCacheOffset = kInstanceDescriptorsOffset + kPointerSize;
2890 static const int kSize = kCodeCacheOffset + kPointerSize; 2890 static const int kSize = kCodeCacheOffset + kPointerSize;
2891 2891
2892 // Byte offsets within kInstanceSizesOffset. 2892 // Byte offsets within kInstanceSizesOffset.
2893 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0; 2893 static const int kInstanceSizeOffset = kInstanceSizesOffset + 0;
2894 static const int kInObjectPropertiesOffset = kInstanceSizesOffset + 1; 2894 static const int kInObjectPropertiesByte = 1;
2895 static const int kPreAllocatedPropertyFieldsOffset = kInstanceSizesOffset + 2; 2895 static const int kInObjectPropertiesOffset =
2896 kInstanceSizesOffset + kInObjectPropertiesByte;
2897 static const int kPreAllocatedPropertyFieldsByte = 2;
2898 static const int kPreAllocatedPropertyFieldsOffset =
2899 kInstanceSizesOffset + kPreAllocatedPropertyFieldsByte;
2896 // The byte at position 3 is not in use at the moment. 2900 // The byte at position 3 is not in use at the moment.
2897 2901
2898 // Byte offsets within kInstanceAttributesOffset attributes. 2902 // Byte offsets within kInstanceAttributesOffset attributes.
2899 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0; 2903 static const int kInstanceTypeOffset = kInstanceAttributesOffset + 0;
2900 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 1; 2904 static const int kUnusedPropertyFieldsOffset = kInstanceAttributesOffset + 1;
2901 static const int kBitFieldOffset = kInstanceAttributesOffset + 2; 2905 static const int kBitFieldOffset = kInstanceAttributesOffset + 2;
2902 static const int kBitField2Offset = kInstanceAttributesOffset + 3; 2906 static const int kBitField2Offset = kInstanceAttributesOffset + 3;
2903 2907
2904 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset); 2908 STATIC_CHECK(kInstanceTypeOffset == Internals::kMapInstanceTypeOffset);
2905 2909
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after
4853 } else { 4857 } else {
4854 value &= ~(1 << bit_position); 4858 value &= ~(1 << bit_position);
4855 } 4859 }
4856 return value; 4860 return value;
4857 } 4861 }
4858 }; 4862 };
4859 4863
4860 } } // namespace v8::internal 4864 } } // namespace v8::internal
4861 4865
4862 #endif // V8_OBJECTS_H_ 4866 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698