OLD | NEW |
---|---|
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 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 { | 1306 void StubFailureTrampolineFrame::Iterate(ObjectVisitor* v) const { |
1307 const int offset = StandardFrameConstants::kContextOffset; | |
1308 Object** base = &Memory::Object_at(sp()); | 1307 Object** base = &Memory::Object_at(sp()); |
1309 Object** limit = &Memory::Object_at(fp() + offset) + 1; | 1308 // sizeof(Arguments) - sizeof(Arguments*) is 3 * kPointerSize), but the |
1309 // presubmit script complains about using sizeof() on a type. | |
1310 Object** limit = &Memory::Object_at( | |
1311 fp() + StandardFrameConstants::kMarkerOffset - 3 * kPointerSize); | |
mvstanton
2013/02/04 08:54:26
A StubFailureTrampolineFrameConstant would be a ni
danno
2013/02/04 10:22:24
Done.
| |
1312 v->VisitPointers(base, limit); | |
1313 limit = &Memory::Object_at(fp()); | |
1314 base = &Memory::Object_at(fp() + StandardFrameConstants::kMarkerOffset); | |
1310 v->VisitPointers(base, limit); | 1315 v->VisitPointers(base, limit); |
1311 IteratePc(v, pc_address(), LookupCode()); | 1316 IteratePc(v, pc_address(), LookupCode()); |
1312 } | 1317 } |
1313 | 1318 |
1314 | 1319 |
1315 // ------------------------------------------------------------------------- | 1320 // ------------------------------------------------------------------------- |
1316 | 1321 |
1317 | 1322 |
1318 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { | 1323 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { |
1319 ASSERT(n >= 0); | 1324 ASSERT(n >= 0); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1477 ZoneList<StackFrame*> list(10, zone); | 1482 ZoneList<StackFrame*> list(10, zone); |
1478 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1483 for (StackFrameIterator it; !it.done(); it.Advance()) { |
1479 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1484 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1480 list.Add(frame, zone); | 1485 list.Add(frame, zone); |
1481 } | 1486 } |
1482 return list.ToVector(); | 1487 return list.ToVector(); |
1483 } | 1488 } |
1484 | 1489 |
1485 | 1490 |
1486 } } // namespace v8::internal | 1491 } } // namespace v8::internal |
OLD | NEW |