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

Unified Diff: src/frames.cc

Issue 1343763002: [turbofan] Add inlining guards to Runtime_NewArguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-arguments-1
Patch Set: Addressed comments. Created 5 years, 3 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/frames.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 0b3534e86f09c89c06e389f70423c10252793a18..2ddb4200bfaedc450fa8db611711f64af717b771 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -727,6 +727,13 @@ bool JavaScriptFrame::IsConstructor() const {
}
+bool JavaScriptFrame::HasInlinedFrames() {
+ List<JSFunction*> functions(1);
+ GetFunctions(&functions);
+ return functions.length() > 1;
+}
+
+
Object* JavaScriptFrame::GetOriginalConstructor() const {
Address fp = caller_fp();
if (has_adapted_arguments()) {
« no previous file with comments | « src/frames.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698