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

Unified Diff: runtime/vm/dart_entry.h

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/dart_entry.h
diff --git a/runtime/vm/dart_entry.h b/runtime/vm/dart_entry.h
index f88a416f93134a4d6b1d4b0df6e87cabb7479934..12c0d4f4f3057d92974167bc82a1e5a4b9f2a1c8 100644
--- a/runtime/vm/dart_entry.h
+++ b/runtime/vm/dart_entry.h
@@ -100,10 +100,18 @@ class ArgumentsDescriptor : public ValueObject {
class DartEntry : public AllStatic {
public:
// On success, returns a RawInstance. On failure, a RawError.
+#if defined(TARGET_ARCH_X64)
+ typedef RawObject* (*invokestub)(const Code& stub_code,
+ const Code& target_code,
+ const Array& arguments_descriptor,
+ const Array& arguments,
+ Thread* thread);
+#else
typedef RawObject* (*invokestub)(uword entry_point,
const Array& arguments_descriptor,
const Array& arguments,
Thread* thread);
+#endif
// Invokes the specified instance function or static function.
// The first argument of an instance function is the receiver.

Powered by Google App Engine
This is Rietveld 408576698