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

Unified Diff: src/runtime/runtime-classes.cc

Issue 1415723005: Ensure we never inline class constructors in Crankshaft, as it currently is entirely unsupported. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « src/crankshaft/hydrogen.cc ('k') | test/mjsunit/regress/regress-inline-class-constructor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-classes.cc
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
index 8eee6b808ec3c5df6331d15e11297047f7cac0aa..b0cee1a44a98afd401c36d293b428a4c0bc280b9 100644
--- a/src/runtime/runtime-classes.cc
+++ b/src/runtime/runtime-classes.cc
@@ -133,6 +133,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, Handle<Object> name,
}
Map::SetPrototype(map, prototype_parent);
map->SetConstructor(*constructor);
+ map->set_is_prototype_map(true);
adamk 2015/10/22 12:01:32 Is this related to your change?
Toon Verwaest 2015/10/22 13:50:56 No, I'll remove for now.
Handle<JSObject> prototype = isolate->factory()->NewJSObjectFromMap(map);
Handle<String> name_string = name->IsString()
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | test/mjsunit/regress/regress-inline-class-constructor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698