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

Unified Diff: runtime/vm/dart_entry.cc

Issue 1156593002: Cache current thread in a reserved register and use it in LoadIsolate (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address review comments. Created 5 years, 7 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.cc
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc
index fd1c9ded62ce9514933c97126ef23559173b8e6b..10c194bf8b265bdd7da6b422a6f62df679255c43 100644
--- a/runtime/vm/dart_entry.cc
+++ b/runtime/vm/dart_entry.cc
@@ -105,19 +105,20 @@ RawObject* DartEntry::InvokeFunction(const Function& function,
static_cast<int64_t>(code.EntryPoint()),
reinterpret_cast<int64_t>(&arguments_descriptor),
reinterpret_cast<int64_t>(&arguments),
- 0));
+ reinterpret_cast<int64_t>(thread)));
#else
return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call(
reinterpret_cast<int32_t>(entrypoint),
static_cast<int32_t>(code.EntryPoint()),
reinterpret_cast<int32_t>(&arguments_descriptor),
reinterpret_cast<int32_t>(&arguments),
- 0));
+ reinterpret_cast<int32_t>(thread)));
#endif
#else
return entrypoint(code.EntryPoint(),
arguments_descriptor,
- arguments);
+ arguments,
+ thread);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698