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

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

Issue 1176263004: Introduce a base pointer field in FixedTypedArrayBase and teach GC about it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after
5921 Handle<String>::null(), false, false); 5921 Handle<String>::null(), false, false);
5922 } 5922 }
5923 5923
5924 static HObjectAccess ForFixedArrayLength() { 5924 static HObjectAccess ForFixedArrayLength() {
5925 return HObjectAccess( 5925 return HObjectAccess(
5926 kArrayLengths, 5926 kArrayLengths,
5927 FixedArray::kLengthOffset, 5927 FixedArray::kLengthOffset,
5928 Representation::Smi()); 5928 Representation::Smi());
5929 } 5929 }
5930 5930
5931 static HObjectAccess ForFixedTypedArrayBaseBasePointer() {
5932 return HObjectAccess(kInobject, FixedTypedArrayBase::kBasePointerOffset,
5933 Representation::Tagged());
5934 }
5935
5931 static HObjectAccess ForStringHashField() { 5936 static HObjectAccess ForStringHashField() {
5932 return HObjectAccess(kInobject, 5937 return HObjectAccess(kInobject,
5933 String::kHashFieldOffset, 5938 String::kHashFieldOffset,
5934 Representation::Integer32()); 5939 Representation::Integer32());
5935 } 5940 }
5936 5941
5937 static HObjectAccess ForStringLength() { 5942 static HObjectAccess ForStringLength() {
5938 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue); 5943 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue);
5939 return HObjectAccess( 5944 return HObjectAccess(
5940 kStringLengths, 5945 kStringLengths,
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after
7892 }; 7897 };
7893 7898
7894 7899
7895 7900
7896 #undef DECLARE_INSTRUCTION 7901 #undef DECLARE_INSTRUCTION
7897 #undef DECLARE_CONCRETE_INSTRUCTION 7902 #undef DECLARE_CONCRETE_INSTRUCTION
7898 7903
7899 } } // namespace v8::internal 7904 } } // namespace v8::internal
7900 7905
7901 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698