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

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

Issue 1428203003: Use in-object fields instead of private symbols for regexp slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 1 month 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/crankshaft/hydrogen.cc ('k') | src/js/macros.py » ('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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 6171 matching lines...) Expand 10 before | Expand all | Expand 10 after
6182 6182
6183 static HObjectAccess ForJSArrayBufferViewByteLength() { 6183 static HObjectAccess ForJSArrayBufferViewByteLength() {
6184 return HObjectAccess::ForObservableJSObjectOffset( 6184 return HObjectAccess::ForObservableJSObjectOffset(
6185 JSArrayBufferView::kByteLengthOffset); 6185 JSArrayBufferView::kByteLengthOffset);
6186 } 6186 }
6187 6187
6188 static HObjectAccess ForJSGlobalObjectNativeContext() { 6188 static HObjectAccess ForJSGlobalObjectNativeContext() {
6189 return HObjectAccess(kInobject, JSGlobalObject::kNativeContextOffset); 6189 return HObjectAccess(kInobject, JSGlobalObject::kNativeContextOffset);
6190 } 6190 }
6191 6191
6192 static HObjectAccess ForJSRegExpFlags() {
6193 return HObjectAccess(kInobject, JSRegExp::kFlagsOffset);
6194 }
6195
6196 static HObjectAccess ForJSRegExpSource() {
6197 return HObjectAccess(kInobject, JSRegExp::kSourceOffset);
6198 }
6199
6192 static HObjectAccess ForJSCollectionTable() { 6200 static HObjectAccess ForJSCollectionTable() {
6193 return HObjectAccess::ForObservableJSObjectOffset( 6201 return HObjectAccess::ForObservableJSObjectOffset(
6194 JSCollection::kTableOffset); 6202 JSCollection::kTableOffset);
6195 } 6203 }
6196 6204
6197 template <typename CollectionType> 6205 template <typename CollectionType>
6198 static HObjectAccess ForOrderedHashTableNumberOfBuckets() { 6206 static HObjectAccess ForOrderedHashTableNumberOfBuckets() {
6199 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset, 6207 return HObjectAccess(kInobject, CollectionType::kNumberOfBucketsOffset,
6200 Representation::Smi()); 6208 Representation::Smi());
6201 } 6209 }
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after
7902 7910
7903 7911
7904 7912
7905 #undef DECLARE_INSTRUCTION 7913 #undef DECLARE_INSTRUCTION
7906 #undef DECLARE_CONCRETE_INSTRUCTION 7914 #undef DECLARE_CONCRETE_INSTRUCTION
7907 7915
7908 } // namespace internal 7916 } // namespace internal
7909 } // namespace v8 7917 } // namespace v8
7910 7918
7911 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 7919 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/js/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698