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

Unified Diff: runtime/vm/raw_object.h

Issue 383523005: Specify descriptor kind to iterate on. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 38124)
+++ runtime/vm/raw_object.h (working copy)
@@ -904,14 +904,15 @@
class RawPcDescriptors : public RawObject {
public:
enum Kind {
- kDeopt, // Deoptimization continuation point.
- kIcCall, // IC call.
- kOptStaticCall, // Call directly to known target, e.g. static call.
- kUnoptStaticCall, // Call to a known target via a stub.
- kClosureCall, // Closure call.
- kRuntimeCall, // Runtime call.
- kOsrEntry, // OSR entry point in unoptimized code.
- kOther
+ kDeopt = 1, // Deoptimization continuation point.
+ kIcCall = kDeopt << 1, // IC call.
+ kOptStaticCall = kIcCall << 1, // Call directly to known target.
+ kUnoptStaticCall = kOptStaticCall << 1, // Call to a known target via stub.
+ kClosureCall = kUnoptStaticCall << 1, // Closure call.
+ kRuntimeCall = kClosureCall << 1, // Runtime call.
+ kOsrEntry = kRuntimeCall << 1, // OSR entry point in unopt. code.
+ kOther = kOsrEntry << 1,
+ kAnyKind = 0xFF
};
struct PcDescriptorRec {
@@ -919,7 +920,7 @@
int32_t deopt_id;
int32_t token_pos; // Or deopt reason.
int16_t try_index; // Or deopt index.
- int8_t kind_;
+ uint8_t kind_;
Kind kind() const { return static_cast<Kind>(kind_); }
};
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698