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

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

Issue 490023003: Fix VM build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | 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 (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 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2066 kModifierPos, 2066 kModifierPos,
2067 kAsyncClosureBit, 2067 kAsyncClosureBit,
2068 kAlwaysInlineBit, 2068 kAlwaysInlineBit,
2069 kPolymorphicTargetBit, 2069 kPolymorphicTargetBit,
2070 kNumTagBits 2070 kNumTagBits
2071 }; 2071 };
2072 2072
2073 COMPILE_ASSERT( 2073 COMPILE_ASSERT(
2074 MethodRecognizer::kNumRecognizedMethods < (1 << kRecognizedTagSize)); 2074 MethodRecognizer::kNumRecognizedMethods < (1 << kRecognizedTagSize));
2075 COMPILE_ASSERT( 2075 COMPILE_ASSERT(
2076 kNumTagBits <= (kBitsPerByte * sizeof(RawFunction::kind_tag_))); 2076 kNumTagBits <=
2077 (kBitsPerByte * sizeof(static_cast<RawFunction*>(0)->kind_tag_)));
2077 2078
2078 class KindBits : 2079 class KindBits :
2079 public BitField<RawFunction::Kind, kKindTagPos, kKindTagSize> {}; // NOLINT 2080 public BitField<RawFunction::Kind, kKindTagPos, kKindTagSize> {}; // NOLINT
2080 class RecognizedBits : public BitField<MethodRecognizer::Kind, 2081 class RecognizedBits : public BitField<MethodRecognizer::Kind,
2081 kRecognizedTagPos, 2082 kRecognizedTagPos,
2082 kRecognizedTagSize> {}; 2083 kRecognizedTagSize> {};
2083 class StaticBit : public BitField<bool, kStaticBit, 1> {}; 2084 class StaticBit : public BitField<bool, kStaticBit, 1> {};
2084 class ConstBit : public BitField<bool, kConstBit, 1> {}; 2085 class ConstBit : public BitField<bool, kConstBit, 1> {};
2085 class AbstractBit : public BitField<bool, kAbstractBit, 1> {}; 2086 class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
2086 class VisibleBit : public BitField<bool, kVisibleBit, 1> {}; 2087 class VisibleBit : public BitField<bool, kVisibleBit, 1> {};
(...skipping 5262 matching lines...) Expand 10 before | Expand all | Expand 10 after
7349 7350
7350 7351
7351 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7352 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7352 intptr_t index) { 7353 intptr_t index) {
7353 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7354 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7354 } 7355 }
7355 7356
7356 } // namespace dart 7357 } // namespace dart
7357 7358
7358 #endif // VM_OBJECT_H_ 7359 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698