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

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

Issue 1093183004: Reland "Remove the weak list of views from array buffers" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: hydrogen / ic support Created 5 years, 8 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/ic/ic.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 // 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() {
6101 return HObjectAccess::ForObservableJSObjectOffset(
6102 JSArrayBuffer::kFlagOffset, Representation::Smi());
6103 }
6104
6100 static HObjectAccess ForExternalArrayExternalPointer() { 6105 static HObjectAccess ForExternalArrayExternalPointer() {
6101 return HObjectAccess::ForObservableJSObjectOffset( 6106 return HObjectAccess::ForObservableJSObjectOffset(
6102 ExternalArray::kExternalPointerOffset, Representation::External()); 6107 ExternalArray::kExternalPointerOffset, Representation::External());
6103 } 6108 }
6104 6109
6105 static HObjectAccess ForJSArrayBufferViewWeakNext() {
6106 return HObjectAccess::ForObservableJSObjectOffset(
6107 JSArrayBufferView::kWeakNextOffset);
6108 }
6109
6110 static HObjectAccess ForJSArrayBufferWeakFirstView() {
6111 return HObjectAccess::ForObservableJSObjectOffset(
6112 JSArrayBuffer::kWeakFirstViewOffset);
6113 }
6114
6115 static HObjectAccess ForJSArrayBufferViewBuffer() { 6110 static HObjectAccess ForJSArrayBufferViewBuffer() {
6116 return HObjectAccess::ForObservableJSObjectOffset( 6111 return HObjectAccess::ForObservableJSObjectOffset(
6117 JSArrayBufferView::kBufferOffset); 6112 JSArrayBufferView::kBufferOffset);
6118 } 6113 }
6119 6114
6120 static HObjectAccess ForJSArrayBufferViewByteOffset() { 6115 static HObjectAccess ForJSArrayBufferViewByteOffset() {
6121 return HObjectAccess::ForObservableJSObjectOffset( 6116 return HObjectAccess::ForObservableJSObjectOffset(
6122 JSArrayBufferView::kByteOffsetOffset); 6117 JSArrayBufferView::kByteOffsetOffset);
6123 } 6118 }
6124 6119
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
7824 }; 7819 };
7825 7820
7826 7821
7827 7822
7828 #undef DECLARE_INSTRUCTION 7823 #undef DECLARE_INSTRUCTION
7829 #undef DECLARE_CONCRETE_INSTRUCTION 7824 #undef DECLARE_CONCRETE_INSTRUCTION
7830 7825
7831 } } // namespace v8::internal 7826 } } // namespace v8::internal
7832 7827
7833 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7828 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698