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

Unified Diff: src/objects-inl.h

Issue 1407513003: [Interpreter]: Basic support for iterating interpreter stack frames for GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« src/frames.cc ('K') | « 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 4f2bd7a29ce27cd6cb8c16e41c1ecdbc120c0024..5bebb35f0ce30239a9bb6e7068740b55727aef33 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -4994,12 +4994,8 @@ bool Code::IsCodeStubOrIC() {
bool Code::IsJavaScriptCode() {
- if (kind() == FUNCTION || kind() == OPTIMIZED_FUNCTION) {
- return true;
- }
- Handle<Code> interpreter_entry =
- GetIsolate()->builtins()->InterpreterEntryTrampoline();
- return interpreter_entry.location() != nullptr && *interpreter_entry == this;
+ return kind() == FUNCTION || kind() == OPTIMIZED_FUNCTION ||
+ is_interpreter_entry_trampoline();
}
@@ -5048,6 +5044,12 @@ inline bool Code::is_hydrogen_stub() {
}
+inline bool Code::is_interpreter_entry_trampoline() {
+ Handle<Code> interpreter_entry =
+ GetIsolate()->builtins()->InterpreterEntryTrampoline();
+ return interpreter_entry.location() != nullptr && *interpreter_entry == this;
+}
+
inline void Code::set_is_crankshafted(bool value) {
int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset);
int updated = IsCrankshaftedField::update(previous, value);
« src/frames.cc ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698