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

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

Issue 805233002: Fix GCC build by using a intptr_t constant instead of anonymous enum. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | 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 3566 matching lines...) Expand 10 before | Expand all | Expand 10 after
3577 V(GuardField) \ 3577 V(GuardField) \
3578 V(TestCids) \ 3578 V(TestCids) \
3579 V(NumReasons) \ 3579 V(NumReasons) \
3580 3580
3581 enum DeoptReasonId { 3581 enum DeoptReasonId {
3582 #define DEFINE_ENUM_LIST(name) kDeopt##name, 3582 #define DEFINE_ENUM_LIST(name) kDeopt##name,
3583 DEOPT_REASONS(DEFINE_ENUM_LIST) 3583 DEOPT_REASONS(DEFINE_ENUM_LIST)
3584 #undef DEFINE_ENUM_LIST 3584 #undef DEFINE_ENUM_LIST
3585 }; 3585 };
3586 3586
3587 enum { 3587 static const intptr_t kLastRecordedDeoptReason = kDeoptUnknown - 1;
3588 kLastRecordedDeoptReason = kDeoptUnknown - 1
3589 };
3590 3588
3591 enum DeoptFlags { 3589 enum DeoptFlags {
3592 // Deoptimization is caused by an optimistically hoisted instruction. 3590 // Deoptimization is caused by an optimistically hoisted instruction.
3593 kHoisted = 1 << 0, 3591 kHoisted = 1 << 0,
3594 3592
3595 // Deoptimization is caused by an optimistically generalized bounds check. 3593 // Deoptimization is caused by an optimistically generalized bounds check.
3596 kGeneralized = 1 << 1 3594 kGeneralized = 1 << 1
3597 }; 3595 };
3598 3596
3599 bool HasDeoptReasons() const { return DeoptReasons() != 0; } 3597 bool HasDeoptReasons() const { return DeoptReasons() != 0; }
(...skipping 4074 matching lines...) Expand 10 before | Expand all | Expand 10 after
7674 7672
7675 7673
7676 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7674 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7677 intptr_t index) { 7675 intptr_t index) {
7678 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7676 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7679 } 7677 }
7680 7678
7681 } // namespace dart 7679 } // namespace dart
7682 7680
7683 #endif // VM_OBJECT_H_ 7681 #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