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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 5 years, 6 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code.h » ('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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 friend class MarkingVisitor; 1030 friend class MarkingVisitor;
1031 friend class Function; 1031 friend class Function;
1032 }; 1032 };
1033 1033
1034 1034
1035 class RawPcDescriptors : public RawObject { 1035 class RawPcDescriptors : public RawObject {
1036 public: 1036 public:
1037 enum Kind { 1037 enum Kind {
1038 kDeopt = 1, // Deoptimization continuation point. 1038 kDeopt = 1, // Deoptimization continuation point.
1039 kIcCall = kDeopt << 1, // IC call. 1039 kIcCall = kDeopt << 1, // IC call.
1040 kOptStaticCall = kIcCall << 1, // Call directly to known target. 1040 kUnoptStaticCall = kIcCall << 1, // Call to a known target via stub.
1041 kUnoptStaticCall = kOptStaticCall << 1, // Call to a known target via stub. 1041 kRuntimeCall = kUnoptStaticCall << 1, // Runtime call.
1042 kClosureCall = kUnoptStaticCall << 1, // Closure call.
1043 kRuntimeCall = kClosureCall << 1, // Runtime call.
1044 kOsrEntry = kRuntimeCall << 1, // OSR entry point in unopt. code. 1042 kOsrEntry = kRuntimeCall << 1, // OSR entry point in unopt. code.
1045 kOther = kOsrEntry << 1, 1043 kOther = kOsrEntry << 1,
1046 kLastKind = kOther, 1044 kLastKind = kOther,
1047 kAnyKind = -1 1045 kAnyKind = -1
1048 }; 1046 };
1049 1047
1050 class MergedKindTry { 1048 class MergedKindTry {
1051 public: 1049 public:
1052 // Most of the time try_index will be small and merged field will fit into 1050 // Most of the time try_index will be small and merged field will fit into
1053 // one byte. 1051 // one byte.
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2132 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2135 kTypedDataInt8ArrayViewCid + 15); 2133 kTypedDataInt8ArrayViewCid + 15);
2136 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2134 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2137 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2135 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2138 return (kNullCid - kTypedDataInt8ArrayCid); 2136 return (kNullCid - kTypedDataInt8ArrayCid);
2139 } 2137 }
2140 2138
2141 } // namespace dart 2139 } // namespace dart
2142 2140
2143 #endif // VM_RAW_OBJECT_H_ 2141 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698