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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 if (has_adapted_arguments()) { | 734 if (has_adapted_arguments()) { |
735 return Smi::cast(GetExpression(caller_fp(), 0))->value(); | 735 return Smi::cast(GetExpression(caller_fp(), 0))->value(); |
736 } else { | 736 } else { |
737 return GetNumberOfIncomingArguments(); | 737 return GetNumberOfIncomingArguments(); |
738 } | 738 } |
739 } | 739 } |
740 | 740 |
741 | 741 |
742 Code* JavaScriptFrame::unchecked_code() const { | 742 Code* JavaScriptFrame::unchecked_code() const { |
743 JSFunction* function = JSFunction::cast(this->function()); | 743 JSFunction* function = JSFunction::cast(this->function()); |
744 return function->unchecked_code(); | 744 return function->code(); |
745 } | 745 } |
746 | 746 |
747 | 747 |
748 int JavaScriptFrame::GetNumberOfIncomingArguments() const { | 748 int JavaScriptFrame::GetNumberOfIncomingArguments() const { |
749 ASSERT(can_access_heap_objects() && | 749 ASSERT(can_access_heap_objects() && |
750 isolate()->heap()->gc_state() == Heap::NOT_IN_GC); | 750 isolate()->heap()->gc_state() == Heap::NOT_IN_GC); |
751 | 751 |
752 JSFunction* function = JSFunction::cast(this->function()); | 752 JSFunction* function = JSFunction::cast(this->function()); |
753 return function->shared()->formal_parameter_count(); | 753 return function->shared()->formal_parameter_count(); |
754 } | 754 } |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 ZoneList<StackFrame*> list(10, zone); | 1621 ZoneList<StackFrame*> list(10, zone); |
1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1622 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1623 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1624 list.Add(frame, zone); | 1624 list.Add(frame, zone); |
1625 } | 1625 } |
1626 return list.ToVector(); | 1626 return list.ToVector(); |
1627 } | 1627 } |
1628 | 1628 |
1629 | 1629 |
1630 } } // namespace v8::internal | 1630 } } // namespace v8::internal |
OLD | NEW |