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

Unified Diff: src/frames.cc

Issue 12490013: Deoptimizer support for hydrogen stubs that accept a variable number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Deoptimizer and BuildGraph() support for variable argument stubs Created 7 years, 9 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
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index ed407e796b637af4072e6be69b85c8cd64fe86c0..1686a5021b7c79822773fb6ffe27278670053abd 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1312,9 +1312,11 @@ Address StubFailureTrampolineFrame::GetCallerStackPointer() const {
Code* StubFailureTrampolineFrame::unchecked_code() const {
int i = 0;
- for (; i <= StubFailureTrampolineStub::kMaxExtraExpressionStackCount; ++i) {
+ for (; i <= 1; ++i) {
Code* trampoline;
- StubFailureTrampolineStub(i).FindCodeInCache(&trampoline, isolate());
+ bool acting_as_js_function = (i == 0) ? false : true;
danno 2013/03/20 21:07:33 Since there is only true/false, I think removing t
mvstanton 2013/03/21 11:47:35 Thanks, I thought this was awkward too, whew.
+ StubFailureTrampolineStub(acting_as_js_function).FindCodeInCache(
+ &trampoline, isolate());
ASSERT(trampoline != NULL);
Address current_pc = pc();
Address code_start = trampoline->instruction_start();

Powered by Google App Engine
This is Rietveld 408576698