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

Side by Side Diff: src/objects-inl.h

Issue 1453653003: [turbofan] Add support for special JSArrayBufferView accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/objects.h ('k') | no next file » | 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 4846 matching lines...) Expand 10 before | Expand all | Expand 10 after
4857 InstanceType type = instance_type(); 4857 InstanceType type = instance_type();
4858 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE; 4858 return FIRST_JS_PROXY_TYPE <= type && type <= LAST_JS_PROXY_TYPE;
4859 } 4859 }
4860 bool Map::IsJSGlobalProxyMap() { 4860 bool Map::IsJSGlobalProxyMap() {
4861 return instance_type() == JS_GLOBAL_PROXY_TYPE; 4861 return instance_type() == JS_GLOBAL_PROXY_TYPE;
4862 } 4862 }
4863 bool Map::IsJSGlobalObjectMap() { 4863 bool Map::IsJSGlobalObjectMap() {
4864 return instance_type() == JS_GLOBAL_OBJECT_TYPE; 4864 return instance_type() == JS_GLOBAL_OBJECT_TYPE;
4865 } 4865 }
4866 bool Map::IsJSTypedArrayMap() { return instance_type() == JS_TYPED_ARRAY_TYPE; } 4866 bool Map::IsJSTypedArrayMap() { return instance_type() == JS_TYPED_ARRAY_TYPE; }
4867 bool Map::IsJSDataViewMap() { return instance_type() == JS_DATA_VIEW_TYPE; }
4867 4868
4868 4869
4869 bool Map::CanOmitMapChecks() { 4870 bool Map::CanOmitMapChecks() {
4870 return is_stable() && FLAG_omit_map_checks_for_leaf_maps; 4871 return is_stable() && FLAG_omit_map_checks_for_leaf_maps;
4871 } 4872 }
4872 4873
4873 4874
4874 int DependentCode::number_of_entries(DependencyGroup group) { 4875 int DependentCode::number_of_entries(DependencyGroup group) {
4875 if (length() == 0) return 0; 4876 if (length() == 0) return 0;
4876 return Smi::cast(get(group))->value(); 4877 return Smi::cast(get(group))->value();
(...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after
7881 #undef WRITE_INT64_FIELD 7882 #undef WRITE_INT64_FIELD
7882 #undef READ_BYTE_FIELD 7883 #undef READ_BYTE_FIELD
7883 #undef WRITE_BYTE_FIELD 7884 #undef WRITE_BYTE_FIELD
7884 #undef NOBARRIER_READ_BYTE_FIELD 7885 #undef NOBARRIER_READ_BYTE_FIELD
7885 #undef NOBARRIER_WRITE_BYTE_FIELD 7886 #undef NOBARRIER_WRITE_BYTE_FIELD
7886 7887
7887 } // namespace internal 7888 } // namespace internal
7888 } // namespace v8 7889 } // namespace v8
7889 7890
7890 #endif // V8_OBJECTS_INL_H_ 7891 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698