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

Unified Diff: src/objects-inl.h

Issue 1940913002: [interpreter] Remove SharedFunctionInfo::IsInterpreted. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 60a140b79c58f0fda45e1126dc97d0669ed142c0..4f5855440243d9b7937bdb3d2c09d066fd40c978 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5901,7 +5901,7 @@ DebugInfo* SharedFunctionInfo::GetDebugInfo() {
bool SharedFunctionInfo::HasDebugCode() {
- return IsInterpreted() ||
+ return HasBytecodeArray() ||
(code()->kind() == Code::FUNCTION && code()->has_debug_break_slots());
}
@@ -5925,16 +5925,6 @@ bool SharedFunctionInfo::HasBytecodeArray() {
return function_data()->IsBytecodeArray();
}
-bool SharedFunctionInfo::IsInterpreted() {
- // Currently, having bytecode does not mean the function is actually being
- // interpreted. However, the debugger has to know precisely what is going to
- // be executed.
- // TODO(yangguo,mstarzinger): make this a synonym of HasBytecodeArray().
- return code() ==
- GetIsolate()->builtins()->builtin(
- Builtins::kInterpreterEntryTrampoline);
-}
-
BytecodeArray* SharedFunctionInfo::bytecode_array() {
DCHECK(HasBytecodeArray());
return BytecodeArray::cast(function_data());
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698