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

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

Issue 1112503002: Turn JSArrayBuffer::flags into a bit field (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 6079 matching lines...) Expand 10 before | Expand all | Expand 10 after
6090 static HObjectAccess ForJSArrayBufferBackingStore() { 6090 static HObjectAccess ForJSArrayBufferBackingStore() {
6091 return HObjectAccess::ForObservableJSObjectOffset( 6091 return HObjectAccess::ForObservableJSObjectOffset(
6092 JSArrayBuffer::kBackingStoreOffset, Representation::External()); 6092 JSArrayBuffer::kBackingStoreOffset, Representation::External());
6093 } 6093 }
6094 6094
6095 static HObjectAccess ForJSArrayBufferByteLength() { 6095 static HObjectAccess ForJSArrayBufferByteLength() {
6096 return HObjectAccess::ForObservableJSObjectOffset( 6096 return HObjectAccess::ForObservableJSObjectOffset(
6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); 6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged());
6098 } 6098 }
6099 6099
6100 static HObjectAccess ForJSArrayBufferFlag() { 6100 static HObjectAccess ForJSArrayBufferBitField() {
6101 return HObjectAccess::ForObservableJSObjectOffset( 6101 return HObjectAccess::ForObservableJSObjectOffset(
6102 JSArrayBuffer::kFlagOffset, Representation::Smi()); 6102 JSArrayBuffer::kBitFieldOffset, Representation::Integer32());
6103 } 6103 }
6104 6104
6105 static HObjectAccess ForExternalArrayExternalPointer() { 6105 static HObjectAccess ForExternalArrayExternalPointer() {
6106 return HObjectAccess::ForObservableJSObjectOffset( 6106 return HObjectAccess::ForObservableJSObjectOffset(
6107 ExternalArray::kExternalPointerOffset, Representation::External()); 6107 ExternalArray::kExternalPointerOffset, Representation::External());
6108 } 6108 }
6109 6109
6110 static HObjectAccess ForJSArrayBufferViewBuffer() { 6110 static HObjectAccess ForJSArrayBufferViewBuffer() {
6111 return HObjectAccess::ForObservableJSObjectOffset( 6111 return HObjectAccess::ForObservableJSObjectOffset(
6112 JSArrayBufferView::kBufferOffset); 6112 JSArrayBufferView::kBufferOffset);
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
7818 }; 7818 };
7819 7819
7820 7820
7821 7821
7822 #undef DECLARE_INSTRUCTION 7822 #undef DECLARE_INSTRUCTION
7823 #undef DECLARE_CONCRETE_INSTRUCTION 7823 #undef DECLARE_CONCRETE_INSTRUCTION
7824 7824
7825 } } // namespace v8::internal 7825 } } // namespace v8::internal
7826 7826
7827 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7827 #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