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

Side by Side Diff: src/frames.cc

Issue 12052053: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove extraneous change Created 7 years, 11 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
« no previous file with comments | « src/frames.h ('k') | src/frames-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 1296
1297 1297
1298 void InternalFrame::Iterate(ObjectVisitor* v) const { 1298 void InternalFrame::Iterate(ObjectVisitor* v) const {
1299 // Internal frames only have object pointers on the expression stack 1299 // Internal frames only have object pointers on the expression stack
1300 // as they never have any arguments. 1300 // as they never have any arguments.
1301 IterateExpressions(v); 1301 IterateExpressions(v);
1302 IteratePc(v, pc_address(), LookupCode()); 1302 IteratePc(v, pc_address(), LookupCode());
1303 } 1303 }
1304 1304
1305 1305
1306 void StubFailureTrampolineFrame::Iterate(ObjectVisitor* v) const {
1307 const int offset = StandardFrameConstants::kContextOffset;
1308 Object** base = &Memory::Object_at(sp());
1309 Object** limit = &Memory::Object_at(fp() + offset) + 1;
1310 v->VisitPointers(base, limit);
1311 IteratePc(v, pc_address(), LookupCode());
1312 }
1313
1314
1306 // ------------------------------------------------------------------------- 1315 // -------------------------------------------------------------------------
1307 1316
1308 1317
1309 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { 1318 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) {
1310 ASSERT(n >= 0); 1319 ASSERT(n >= 0);
1311 for (int i = 0; i <= n; i++) { 1320 for (int i = 0; i <= n; i++) {
1312 while (!iterator_.frame()->is_java_script()) iterator_.Advance(); 1321 while (!iterator_.frame()->is_java_script()) iterator_.Advance();
1313 if (i == n) return JavaScriptFrame::cast(iterator_.frame()); 1322 if (i == n) return JavaScriptFrame::cast(iterator_.frame());
1314 iterator_.Advance(); 1323 iterator_.Advance();
1315 } 1324 }
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 ZoneList<StackFrame*> list(10, zone); 1477 ZoneList<StackFrame*> list(10, zone);
1469 for (StackFrameIterator it; !it.done(); it.Advance()) { 1478 for (StackFrameIterator it; !it.done(); it.Advance()) {
1470 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1479 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1471 list.Add(frame, zone); 1480 list.Add(frame, zone);
1472 } 1481 }
1473 return list.ToVector(); 1482 return list.ToVector();
1474 } 1483 }
1475 1484
1476 1485
1477 } } // namespace v8::internal 1486 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698