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

Side by Side Diff: runtime/vm/object.h

Issue 12982010: Review changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 5033 matching lines...) Expand 10 before | Expand all | Expand 10 after
5044 TYPED_GETTER_SETTER(Int8, int8_t) 5044 TYPED_GETTER_SETTER(Int8, int8_t)
5045 TYPED_GETTER_SETTER(Uint8, uint8_t) 5045 TYPED_GETTER_SETTER(Uint8, uint8_t)
5046 TYPED_GETTER_SETTER(Int16, int16_t) 5046 TYPED_GETTER_SETTER(Int16, int16_t)
5047 TYPED_GETTER_SETTER(Uint16, uint16_t) 5047 TYPED_GETTER_SETTER(Uint16, uint16_t)
5048 TYPED_GETTER_SETTER(Int32, int32_t) 5048 TYPED_GETTER_SETTER(Int32, int32_t)
5049 TYPED_GETTER_SETTER(Uint32, uint32_t) 5049 TYPED_GETTER_SETTER(Uint32, uint32_t)
5050 TYPED_GETTER_SETTER(Int64, int64_t) 5050 TYPED_GETTER_SETTER(Int64, int64_t)
5051 TYPED_GETTER_SETTER(Uint64, uint64_t) 5051 TYPED_GETTER_SETTER(Uint64, uint64_t)
5052 TYPED_GETTER_SETTER(Float32, float) 5052 TYPED_GETTER_SETTER(Float32, float)
5053 TYPED_GETTER_SETTER(Float64, double) 5053 TYPED_GETTER_SETTER(Float64, double)
5054 TYPED_GETTER_SETTER(Float32x4, simd128_value_t)
5054 5055
5055 static intptr_t length_offset() { 5056 static intptr_t length_offset() {
5056 return OFFSET_OF(RawTypedData, length_); 5057 return OFFSET_OF(RawTypedData, length_);
5057 } 5058 }
5058 5059
5059 static intptr_t data_offset() { 5060 static intptr_t data_offset() {
5060 return OFFSET_OF(RawTypedData, data_); 5061 return OFFSET_OF(RawTypedData, data_);
5061 } 5062 }
5062 5063
5063 static intptr_t InstanceSize() { 5064 static intptr_t InstanceSize() {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
5140 TYPED_GETTER_SETTER(Int8, int8_t) 5141 TYPED_GETTER_SETTER(Int8, int8_t)
5141 TYPED_GETTER_SETTER(Uint8, uint8_t) 5142 TYPED_GETTER_SETTER(Uint8, uint8_t)
5142 TYPED_GETTER_SETTER(Int16, int16_t) 5143 TYPED_GETTER_SETTER(Int16, int16_t)
5143 TYPED_GETTER_SETTER(Uint16, uint16_t) 5144 TYPED_GETTER_SETTER(Uint16, uint16_t)
5144 TYPED_GETTER_SETTER(Int32, int32_t) 5145 TYPED_GETTER_SETTER(Int32, int32_t)
5145 TYPED_GETTER_SETTER(Uint32, uint32_t) 5146 TYPED_GETTER_SETTER(Uint32, uint32_t)
5146 TYPED_GETTER_SETTER(Int64, int64_t) 5147 TYPED_GETTER_SETTER(Int64, int64_t)
5147 TYPED_GETTER_SETTER(Uint64, uint64_t) 5148 TYPED_GETTER_SETTER(Uint64, uint64_t)
5148 TYPED_GETTER_SETTER(Float32, float) 5149 TYPED_GETTER_SETTER(Float32, float)
5149 TYPED_GETTER_SETTER(Float64, double) 5150 TYPED_GETTER_SETTER(Float64, double)
5151 TYPED_GETTER_SETTER(Float32x4, simd128_value_t);
5150 5152
5151 FinalizablePersistentHandle* AddFinalizer( 5153 FinalizablePersistentHandle* AddFinalizer(
5152 void* peer, Dart_WeakPersistentHandleFinalizer callback) const; 5154 void* peer, Dart_WeakPersistentHandleFinalizer callback) const;
5153 5155
5154 static intptr_t length_offset() { 5156 static intptr_t length_offset() {
5155 return OFFSET_OF(RawExternalTypedData, length_); 5157 return OFFSET_OF(RawExternalTypedData, length_);
5156 } 5158 }
5157 5159
5158 static intptr_t data_offset() { 5160 static intptr_t data_offset() {
5159 return OFFSET_OF(RawExternalTypedData, data_); 5161 return OFFSET_OF(RawExternalTypedData, data_);
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after
6933 6935
6934 6936
6935 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6937 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6936 intptr_t index) { 6938 intptr_t index) {
6937 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6939 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6938 } 6940 }
6939 6941
6940 } // namespace dart 6942 } // namespace dart
6941 6943
6942 #endif // VM_OBJECT_H_ 6944 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698