| 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 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 } | 1167 } |
| 1168 | 1168 |
| 1169 accumulator->Add("}\n\n"); | 1169 accumulator->Add("}\n\n"); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 | 1172 |
| 1173 void EntryFrame::Iterate(ObjectVisitor* v) const { | 1173 void EntryFrame::Iterate(ObjectVisitor* v) const { |
| 1174 StackHandlerIterator it(this, top_handler()); | 1174 StackHandlerIterator it(this, top_handler()); |
| 1175 ASSERT(!it.done()); | 1175 ASSERT(!it.done()); |
| 1176 StackHandler* handler = it.handler(); | 1176 StackHandler* handler = it.handler(); |
| 1177 ASSERT(handler->is_entry()); | 1177 ASSERT(handler->is_js_entry()); |
| 1178 handler->Iterate(v, LookupCode()); | 1178 handler->Iterate(v, LookupCode()); |
| 1179 #ifdef DEBUG | 1179 #ifdef DEBUG |
| 1180 // Make sure that the entry frame does not contain more than one | 1180 // Make sure that the entry frame does not contain more than one |
| 1181 // stack handler. | 1181 // stack handler. |
| 1182 it.Advance(); | 1182 it.Advance(); |
| 1183 ASSERT(it.done()); | 1183 ASSERT(it.done()); |
| 1184 #endif | 1184 #endif |
| 1185 IteratePc(v, pc_address(), LookupCode()); | 1185 IteratePc(v, pc_address(), LookupCode()); |
| 1186 } | 1186 } |
| 1187 | 1187 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 ZoneList<StackFrame*> list(10); | 1390 ZoneList<StackFrame*> list(10); |
| 1391 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1391 for (StackFrameIterator it; !it.done(); it.Advance()) { |
| 1392 StackFrame* frame = AllocateFrameCopy(it.frame()); | 1392 StackFrame* frame = AllocateFrameCopy(it.frame()); |
| 1393 list.Add(frame); | 1393 list.Add(frame); |
| 1394 } | 1394 } |
| 1395 return list.ToVector(); | 1395 return list.ToVector(); |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 | 1398 |
| 1399 } } // namespace v8::internal | 1399 } } // namespace v8::internal |
| OLD | NEW |