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

Unified Diff: runtime/vm/runtime_entry.cc

Issue 1315893004: Load runtime entries from the Thread instead of the ObjectPool. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/runtime_entry.h ('k') | runtime/vm/runtime_entry_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/runtime_entry.cc
diff --git a/runtime/vm/runtime_entry_test.cc b/runtime/vm/runtime_entry.cc
similarity index 54%
rename from runtime/vm/runtime_entry_test.cc
rename to runtime/vm/runtime_entry.cc
index f02f6f7ed5540913f61f7af8514f37a3ff579a84..f177a1041434631d1c765d03af70fab6bec7e08b 100644
--- a/runtime/vm/runtime_entry_test.cc
+++ b/runtime/vm/runtime_entry.cc
@@ -10,9 +10,6 @@
namespace dart {
-DECLARE_RUNTIME_ENTRY(TestSmiSub)
-DECLARE_LEAF_RUNTIME_ENTRY(RawObject*, TestLeafSmiAdd, RawObject*, RawObject*)
-
// Add function to a class and that class to the class dictionary so that
// frame walking can be used.
@@ -34,32 +31,4 @@ const Function& RegisterFakeFunction(const char* name, const Code& code) {
return function;
}
-
-// A runtime call for test purposes.
-// Arg0: a smi.
-// Arg1: a smi.
-// Result: a smi representing arg0 - arg1.
-DEFINE_RUNTIME_ENTRY(TestSmiSub, 2) {
- const Smi& left = Smi::CheckedHandle(arguments.ArgAt(0));
- const Smi& right = Smi::CheckedHandle(arguments.ArgAt(1));
- // Ignoring overflow in the calculation below.
- intptr_t result = left.Value() - right.Value();
- arguments.SetReturn(Smi::Handle(Smi::New(result)));
-}
-
-
-// A leaf runtime call for test purposes.
-// arg0: a smi.
-// arg1: a smi.
-// returns a smi representing arg0 + arg1.
-DEFINE_LEAF_RUNTIME_ENTRY(RawObject*, TestLeafSmiAdd, 2,
- RawObject* arg0, RawObject* arg1) {
- // Ignoring overflow in the calculation below and using the internal
- // representation of Smi directly without using any handlized code.
- intptr_t result = reinterpret_cast<intptr_t>(arg0) +
- reinterpret_cast<intptr_t>(arg1);
- return reinterpret_cast<RawObject*>(result);
-}
-END_LEAF_RUNTIME_ENTRY
-
} // namespace dart
« no previous file with comments | « runtime/vm/runtime_entry.h ('k') | runtime/vm/runtime_entry_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698