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

Unified Diff: runtime/vm/precompiler.cc

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 11 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/parser_test.cc ('k') | runtime/vm/profiler_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index 97f90c321d8e1cd1b3b90932ad52994e6ec71394..4c42e186c2f09801526f9314f97285e5917900c6 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -154,6 +154,7 @@ void Precompiler::AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]) {
static const intptr_t kExternallyAllocatedCids[] = {
kBoolCid,
kNullCid,
+ kClosureCid,
kSmiCid,
kMintCid,
@@ -201,6 +202,7 @@ void Precompiler::AddRoots(Dart_QualifiedFunctionName embedder_entry_points[]) {
kFloat64x2Cid,
kTypeCid,
+ kFunctionTypeCid,
kTypeRefCid,
kTypeParameterCid,
kBoundedTypeCid,
@@ -468,7 +470,8 @@ void Precompiler::AddConstObject(const Instance& instance) {
if (instance.IsClosure()) {
// An implicit static closure.
- const Function& func = Function::Handle(Z, Closure::function(instance));
+ const Function& func =
+ Function::Handle(Z, Closure::Cast(instance).function());
ASSERT(func.is_static());
AddFunction(func);
return;
@@ -511,10 +514,8 @@ void Precompiler::AddConstObject(const Instance& instance) {
void Precompiler::AddClosureCall(const ICData& call_site) {
const Array& arguments_descriptor =
Array::Handle(Z, call_site.arguments_descriptor());
- const Type& function_impl =
- Type::Handle(Z, I->object_store()->function_impl_type());
const Class& cache_class =
- Class::Handle(Z, function_impl.type_class());
+ Class::Handle(Z, I->object_store()->closure_class());
const Function& dispatcher = Function::Handle(Z,
cache_class.GetInvocationDispatcher(Symbols::Call(),
arguments_descriptor,
« no previous file with comments | « runtime/vm/parser_test.cc ('k') | runtime/vm/profiler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698