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 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 if (trampoline->contains(pc())) { | 1394 if (trampoline->contains(pc())) { |
1395 return trampoline; | 1395 return trampoline; |
1396 } | 1396 } |
1397 | 1397 |
1398 StubFailureTrampolineStub(JS_FUNCTION_STUB_MODE). | 1398 StubFailureTrampolineStub(JS_FUNCTION_STUB_MODE). |
1399 FindCodeInCache(&trampoline, isolate()); | 1399 FindCodeInCache(&trampoline, isolate()); |
1400 if (trampoline->contains(pc())) { | 1400 if (trampoline->contains(pc())) { |
1401 return trampoline; | 1401 return trampoline; |
1402 } | 1402 } |
1403 | 1403 |
1404 StubFailureTailCallTrampolineStub().FindCodeInCache(&trampoline, isolate()); | |
1405 if (trampoline->contains(pc())) { | |
1406 return trampoline; | |
1407 } | |
1408 | |
1409 UNREACHABLE(); | 1404 UNREACHABLE(); |
1410 return NULL; | 1405 return NULL; |
1411 } | 1406 } |
1412 | 1407 |
1413 | 1408 |
1414 // ------------------------------------------------------------------------- | 1409 // ------------------------------------------------------------------------- |
1415 | 1410 |
1416 | 1411 |
1417 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { | 1412 JavaScriptFrame* StackFrameLocator::FindJavaScriptFrame(int n) { |
1418 ASSERT(n >= 0); | 1413 ASSERT(n >= 0); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 ZoneList<StackFrame*> list(10, zone); | 1627 ZoneList<StackFrame*> list(10, zone); |
1633 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1628 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1634 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1629 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1635 list.Add(frame, zone); | 1630 list.Add(frame, zone); |
1636 } | 1631 } |
1637 return list.ToVector(); | 1632 return list.ToVector(); |
1638 } | 1633 } |
1639 | 1634 |
1640 | 1635 |
1641 } } // namespace v8::internal | 1636 } } // namespace v8::internal |
OLD | NEW |