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

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: 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
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 6115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6126 static HObjectAccess ForJSArrayBufferByteLength() { 6126 static HObjectAccess ForJSArrayBufferByteLength() {
6127 return HObjectAccess::ForObservableJSObjectOffset( 6127 return HObjectAccess::ForObservableJSObjectOffset(
6128 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); 6128 JSArrayBuffer::kByteLengthOffset, Representation::Tagged());
6129 } 6129 }
6130 6130
6131 static HObjectAccess ForJSArrayBufferBitField() { 6131 static HObjectAccess ForJSArrayBufferBitField() {
6132 return HObjectAccess::ForObservableJSObjectOffset( 6132 return HObjectAccess::ForObservableJSObjectOffset(
6133 JSArrayBuffer::kBitFieldOffset, Representation::Integer32()); 6133 JSArrayBuffer::kBitFieldOffset, Representation::Integer32());
6134 } 6134 }
6135 6135
6136 static HObjectAccess ForJSArrayBufferBitFieldSlot() {
6137 return HObjectAccess::ForObservableJSObjectOffset(
6138 JSArrayBuffer::kBitFieldSlot, Representation::Smi());
6139 }
6140
6136 static HObjectAccess ForExternalArrayExternalPointer() { 6141 static HObjectAccess ForExternalArrayExternalPointer() {
6137 return HObjectAccess::ForObservableJSObjectOffset( 6142 return HObjectAccess::ForObservableJSObjectOffset(
6138 ExternalArray::kExternalPointerOffset, Representation::External()); 6143 ExternalArray::kExternalPointerOffset, Representation::External());
6139 } 6144 }
6140 6145
6141 static HObjectAccess ForJSArrayBufferViewBuffer() { 6146 static HObjectAccess ForJSArrayBufferViewBuffer() {
6142 return HObjectAccess::ForObservableJSObjectOffset( 6147 return HObjectAccess::ForObservableJSObjectOffset(
6143 JSArrayBufferView::kBufferOffset); 6148 JSArrayBufferView::kBufferOffset);
6144 } 6149 }
6145 6150
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
7849 }; 7854 };
7850 7855
7851 7856
7852 7857
7853 #undef DECLARE_INSTRUCTION 7858 #undef DECLARE_INSTRUCTION
7854 #undef DECLARE_CONCRETE_INSTRUCTION 7859 #undef DECLARE_CONCRETE_INSTRUCTION
7855 7860
7856 } } // namespace v8::internal 7861 } } // namespace v8::internal
7857 7862
7858 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7863 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/hydrogen.cc ('K') | « 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