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

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

Issue 11478047: Fix compilation on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « no previous file | 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 2921 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 void WriteSentinel() const; 2932 void WriteSentinel() const;
2933 2933
2934 HEAP_OBJECT_IMPLEMENTATION(ICData, Object); 2934 HEAP_OBJECT_IMPLEMENTATION(ICData, Object);
2935 friend class Class; 2935 friend class Class;
2936 }; 2936 };
2937 2937
2938 2938
2939 class MegamorphicCache : public Object { 2939 class MegamorphicCache : public Object {
2940 public: 2940 public:
2941 static const int kInitialCapacity = 16; 2941 static const int kInitialCapacity = 16;
2942 static const double kLoadFactor = 0.75; 2942 static const double kLoadFactor;
2943 2943
2944 RawArray* buckets() const; 2944 RawArray* buckets() const;
2945 void set_buckets(const Array& buckets) const; 2945 void set_buckets(const Array& buckets) const;
2946 2946
2947 intptr_t mask() const; 2947 intptr_t mask() const;
2948 void set_mask(intptr_t mask) const; 2948 void set_mask(intptr_t mask) const;
2949 2949
2950 intptr_t filled_entry_count() const; 2950 intptr_t filled_entry_count() const;
2951 void set_filled_entry_count(intptr_t num) const; 2951 void set_filled_entry_count(intptr_t num) const;
2952 2952
(...skipping 3188 matching lines...) Expand 10 before | Expand all | Expand 10 after
6141 6141
6142 6142
6143 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6143 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6144 intptr_t index) { 6144 intptr_t index) {
6145 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6145 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6146 } 6146 }
6147 6147
6148 } // namespace dart 6148 } // namespace dart
6149 6149
6150 #endif // VM_OBJECT_H_ 6150 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698