| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 } | 364 } |
| 365 } | 365 } |
| 366 | 366 |
| 367 | 367 |
| 368 Code* StackFrame::GetSafepointData(Isolate* isolate, | 368 Code* StackFrame::GetSafepointData(Isolate* isolate, |
| 369 Address pc, | 369 Address pc, |
| 370 SafepointEntry* safepoint_entry, | 370 SafepointEntry* safepoint_entry, |
| 371 unsigned* stack_slots) { | 371 unsigned* stack_slots) { |
| 372 PcToCodeCache::PcToCodeCacheEntry* entry = | 372 PcToCodeCache::PcToCodeCacheEntry* entry = |
| 373 isolate->pc_to_code_cache()->GetCacheEntry(pc); | 373 isolate->pc_to_code_cache()->GetCacheEntry(pc); |
| 374 SafepointEntry cached_safepoint_entry = entry->safepoint_entry; | |
| 375 if (!entry->safepoint_entry.is_valid()) { | 374 if (!entry->safepoint_entry.is_valid()) { |
| 376 entry->safepoint_entry = entry->code->GetSafepointEntry(pc); | 375 entry->safepoint_entry = entry->code->GetSafepointEntry(pc); |
| 377 ASSERT(entry->safepoint_entry.is_valid()); | 376 ASSERT(entry->safepoint_entry.is_valid()); |
| 378 } else { | 377 } else { |
| 379 ASSERT(entry->safepoint_entry.Equals(entry->code->GetSafepointEntry(pc))); | 378 ASSERT(entry->safepoint_entry.Equals(entry->code->GetSafepointEntry(pc))); |
| 380 } | 379 } |
| 381 | 380 |
| 382 // Fill in the results and return the code. | 381 // Fill in the results and return the code. |
| 383 Code* code = entry->code; | 382 Code* code = entry->code; |
| 384 *safepoint_entry = entry->safepoint_entry; | 383 *safepoint_entry = entry->safepoint_entry; |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 ZoneList<StackFrame*> list(10); | 1270 ZoneList<StackFrame*> list(10); |
| 1272 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1271 for (StackFrameIterator it; !it.done(); it.Advance()) { |
| 1273 StackFrame* frame = AllocateFrameCopy(it.frame()); | 1272 StackFrame* frame = AllocateFrameCopy(it.frame()); |
| 1274 list.Add(frame); | 1273 list.Add(frame); |
| 1275 } | 1274 } |
| 1276 return list.ToVector(); | 1275 return list.ToVector(); |
| 1277 } | 1276 } |
| 1278 | 1277 |
| 1279 | 1278 |
| 1280 } } // namespace v8::internal | 1279 } } // namespace v8::internal |
| OLD | NEW |