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

Unified Diff: src/ic/ic.cc

Issue 2481433002: [Interpreter] Add IsInterpreted() to JSFunction and use to fix test-heap tests. (Closed)
Patch Set: Rebase 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/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index f5e531b0cea999053bb3e836e972d181e352c9ab..4fe97142f8e160fafe780f75e98357531e5df6e8 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -115,7 +115,7 @@ void IC::TraceIC(const char* type, Handle<Object> name, State old_state,
if (maybe_function->IsJSFunction()) {
JSFunction* function = JSFunction::cast(maybe_function);
int code_offset = 0;
- if (function->code()->is_interpreter_trampoline_builtin()) {
+ if (function->IsInterpreted()) {
code_offset = InterpretedFrame::GetBytecodeOffset(fp());
} else {
code_offset =
« no previous file with comments | « src/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698