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

Unified Diff: src/objects.h

Issue 2481433002: [Interpreter] Add IsInterpreted() to JSFunction and use to fix test-heap tests. (Closed)
Patch Set: Fix always-opt Created 4 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/ic/ic.cc ('k') | src/objects.cc » ('j') | test/cctest/heap/test-heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 9e3c0372ce2e34c091dcda0510015f217c09b823..e1a590b85c5483bfd5912c84dcda061c99e75c9b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7378,6 +7378,8 @@ class SharedFunctionInfo: public HeapObject {
// a Code object or a BytecodeArray.
inline AbstractCode* abstract_code();
+ inline bool IsInterpreted() const;
Michael Starzinger 2016/11/09 12:07:23 nit: Please add a similar comment (like in JSFunct
rmcilroy 2016/11/09 16:50:10 Good point, added a comment as-such to both functi
+
inline void ReplaceCode(Code* code);
inline bool HasBaselineCode() const;
@@ -8324,6 +8326,9 @@ class JSFunction: public JSObject {
// Tells whether this function inlines the given shared function info.
bool Inlines(SharedFunctionInfo* candidate);
+ // Tells whether or not this function is interpreted.
+ inline bool IsInterpreted();
+
// Tells whether or not this function has been optimized.
inline bool IsOptimized();
« no previous file with comments | « src/ic/ic.cc ('k') | src/objects.cc » ('j') | test/cctest/heap/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698