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

Unified Diff: runtime/vm/runtime_entry.h

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/raw_object.h ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry.h
diff --git a/runtime/vm/runtime_entry.h b/runtime/vm/runtime_entry.h
index 3bb1ddef75e9864a22d4ae7b29937d78dd75ff9e..9f70b8da224c4021fbc8c73bf4d9bd469181eb62 100644
--- a/runtime/vm/runtime_entry.h
+++ b/runtime/vm/runtime_entry.h
@@ -9,6 +9,7 @@
#include "vm/assembler.h"
#include "vm/flags.h"
#include "vm/native_arguments.h"
+#include "vm/tags.h"
namespace dart {
@@ -28,7 +29,11 @@ class RuntimeEntry : public ValueObject {
function_(function),
argument_count_(argument_count),
is_leaf_(is_leaf),
- is_float_(is_float) { }
+ is_float_(is_float),
+ next_(NULL) {
+ // Strip off const for registration.
+ VMTag::RegisterRuntimeEntry(const_cast<RuntimeEntry*>(this));
+ }
~RuntimeEntry() {}
const char* name() const { return name_; }
@@ -41,12 +46,16 @@ class RuntimeEntry : public ValueObject {
// Generate code to call the runtime entry.
void Call(Assembler* assembler, intptr_t argument_count) const;
+ void set_next(const RuntimeEntry* next) { next_ = next; }
+ const RuntimeEntry* next() const { return next_; }
+
private:
const char* name_;
const RuntimeFunction function_;
const intptr_t argument_count_;
const bool is_leaf_;
const bool is_float_;
+ const RuntimeEntry* next_;
DISALLOW_COPY_AND_ASSIGN(RuntimeEntry);
};
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698