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

Unified Diff: runtime/vm/intrinsifier.cc

Issue 2965723002: VM: Reland Inline instance object hash code into object header on 64bit. (Closed)
Patch Set: Fix snapshot incompatibility that sank Flutter Gallery Created 3 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
« no previous file with comments | « runtime/vm/intermediate_language_dbc.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 951fd67cf1abe9b873a44995e5aba984a23b43bf..51d0e29ba441f56b28610f1a815e059a6f298b99 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -228,6 +228,17 @@ bool Intrinsifier::Intrinsify(const ParsedFunction& parsed_function,
return compiler->intrinsic_slow_path_label()->IsUnused();
}
+#if !defined(HASH_IN_OBJECT_HEADER)
Vyacheslav Egorov (Google) 2017/06/30 16:47:26 I think it is just okay to have an empty intrinsic
erikcorry 2017/06/30 20:00:09 I assumed it would break things. The implementati
+ // These two are more complicated on 32 bit platforms, where the
+ // identity hash is not stored in the header of the object. We
+ // therefore don't intrinsify them, falling back on the native C++
+ // implementations.
+ if (function.recognized_kind() == MethodRecognizer::kObject_getHash ||
+ function.recognized_kind() == MethodRecognizer::kObject_setHash) {
+ return false;
+ }
+#endif
+
#define EMIT_CASE(class_name, function_name, enum_name, type, fp) \
case MethodRecognizer::k##enum_name: \
compiler->assembler()->Comment("Intrinsic"); \
« no previous file with comments | « runtime/vm/intermediate_language_dbc.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698