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

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

Issue 1109353003: Unify internal and external typed arrays a bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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/ia32/lithium-codegen-ia32.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 6112 matching lines...) Expand 10 before | Expand all | Expand 10 after
6123 static HObjectAccess ForJSArrayBufferByteLength() { 6123 static HObjectAccess ForJSArrayBufferByteLength() {
6124 return HObjectAccess::ForObservableJSObjectOffset( 6124 return HObjectAccess::ForObservableJSObjectOffset(
6125 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); 6125 JSArrayBuffer::kByteLengthOffset, Representation::Tagged());
6126 } 6126 }
6127 6127
6128 static HObjectAccess ForJSArrayBufferBitField() { 6128 static HObjectAccess ForJSArrayBufferBitField() {
6129 return HObjectAccess::ForObservableJSObjectOffset( 6129 return HObjectAccess::ForObservableJSObjectOffset(
6130 JSArrayBuffer::kBitFieldOffset, Representation::Integer32()); 6130 JSArrayBuffer::kBitFieldOffset, Representation::Integer32());
6131 } 6131 }
6132 6132
6133 static HObjectAccess ForJSArrayBufferBitFieldSlot() {
6134 return HObjectAccess::ForObservableJSObjectOffset(
6135 JSArrayBuffer::kBitFieldSlot, Representation::Smi());
6136 }
6137
6133 static HObjectAccess ForExternalArrayExternalPointer() { 6138 static HObjectAccess ForExternalArrayExternalPointer() {
6134 return HObjectAccess::ForObservableJSObjectOffset( 6139 return HObjectAccess::ForObservableJSObjectOffset(
6135 ExternalArray::kExternalPointerOffset, Representation::External()); 6140 ExternalArray::kExternalPointerOffset, Representation::External());
6136 } 6141 }
6137 6142
6138 static HObjectAccess ForJSArrayBufferViewBuffer() { 6143 static HObjectAccess ForJSArrayBufferViewBuffer() {
6139 return HObjectAccess::ForObservableJSObjectOffset( 6144 return HObjectAccess::ForObservableJSObjectOffset(
6140 JSArrayBufferView::kBufferOffset); 6145 JSArrayBufferView::kBufferOffset);
6141 } 6146 }
6142 6147
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
7846 }; 7851 };
7847 7852
7848 7853
7849 7854
7850 #undef DECLARE_INSTRUCTION 7855 #undef DECLARE_INSTRUCTION
7851 #undef DECLARE_CONCRETE_INSTRUCTION 7856 #undef DECLARE_CONCRETE_INSTRUCTION
7852 7857
7853 } } // namespace v8::internal 7858 } } // namespace v8::internal
7854 7859
7855 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7860 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698