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

Unified Diff: src/hydrogen-instructions.h

Issue 707463002: Reland "Optimize function across closures." (again). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 1 month 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/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 810a2fdd520d26e0d636e97ee470681210f293ac..9a8eaf1dac476c6e5d51b70f7e14c37140f57fd2 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -6121,6 +6121,18 @@ class HObjectAccess FINAL {
SharedFunctionInfo::kOptimizedCodeMapOffset);
}
+ static HObjectAccess ForCompileHint() {
+// Compile hints are stored in the upper half of a pseudo-smi, which for
+// 64-bit means that the representation is an integer.
+#if V8_HOST_ARCH_32_BIT
+ Representation repr = Representation::Smi();
+#else
+ Representation repr = Representation::Integer32();
+#endif
+ return HObjectAccess(kInobject, SharedFunctionInfo::kCompilerHintsOffset,
+ repr);
+ }
+
static HObjectAccess ForFunctionContextPointer() {
return HObjectAccess(kInobject, JSFunction::kContextOffset);
}
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698