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

Side by Side 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: Review feedback (sorry, includes rebase) 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 IteratePc(v, pc_address(), LookupCode()); 1304 IteratePc(v, pc_address(), LookupCode());
1305 } 1305 }
1306 1306
1307 1307
1308 Address StubFailureTrampolineFrame::GetCallerStackPointer() const { 1308 Address StubFailureTrampolineFrame::GetCallerStackPointer() const {
1309 return fp() + StandardFrameConstants::kCallerSPOffset; 1309 return fp() + StandardFrameConstants::kCallerSPOffset;
1310 } 1310 }
1311 1311
1312 1312
1313 Code* StubFailureTrampolineFrame::unchecked_code() const { 1313 Code* StubFailureTrampolineFrame::unchecked_code() const {
1314 int i = 0; 1314 Code* trampoline;
1315 for (; i <= StubFailureTrampolineStub::kMaxExtraExpressionStackCount; ++i) { 1315 StubFailureTrampolineStub(false).FindCodeInCache(&trampoline, isolate());
1316 Code* trampoline; 1316 if (trampoline->contains(pc())) {
1317 StubFailureTrampolineStub(i).FindCodeInCache(&trampoline, isolate()); 1317 return trampoline;
1318 ASSERT(trampoline != NULL);
1319 Address current_pc = pc();
1320 Address code_start = trampoline->instruction_start();
1321 Address code_end = code_start + trampoline->instruction_size();
1322 if (code_start <= current_pc && current_pc < code_end) {
1323 return trampoline;
1324 }
1325 } 1318 }
1319
1320 StubFailureTrampolineStub(true).FindCodeInCache(&trampoline, isolate());
1321 if (trampoline->contains(pc())) {
1322 return trampoline;
1323 }
1324
1326 UNREACHABLE(); 1325 UNREACHABLE();
1327 return NULL; 1326 return NULL;
1328 } 1327 }
1329 1328
1330 1329
1331 // ------------------------------------------------------------------------- 1330 // -------------------------------------------------------------------------
1332 1331
1333 1332
1334 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { 1333 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) {
1335 ASSERT(n >= 0); 1334 ASSERT(n >= 0);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 ZoneList<StackFrame*> list(10, zone); 1492 ZoneList<StackFrame*> list(10, zone);
1494 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1493 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1495 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1494 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1496 list.Add(frame, zone); 1495 list.Add(frame, zone);
1497 } 1496 }
1498 return list.ToVector(); 1497 return list.ToVector();
1499 } 1498 }
1500 1499
1501 1500
1502 } } // namespace v8::internal 1501 } } // namespace v8::internal
OLDNEW
« src/deoptimizer.cc ('K') | « src/deoptimizer.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698