| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 | 844 |
| 845 Address InternalFrame::GetCallerStackPointer() const { | 845 Address InternalFrame::GetCallerStackPointer() const { |
| 846 // Internal frames have no arguments. The stack pointer of the | 846 // Internal frames have no arguments. The stack pointer of the |
| 847 // caller is at a fixed offset from the frame pointer. | 847 // caller is at a fixed offset from the frame pointer. |
| 848 return fp() + StandardFrameConstants::kCallerSPOffset; | 848 return fp() + StandardFrameConstants::kCallerSPOffset; |
| 849 } | 849 } |
| 850 | 850 |
| 851 | 851 |
| 852 Code* ArgumentsAdaptorFrame::unchecked_code() const { | 852 Code* ArgumentsAdaptorFrame::unchecked_code() const { |
| 853 return Isolate::Current()->builtins()->builtin( | 853 return Isolate::Current()->builtins()->builtin( |
| 854 Builtins::ArgumentsAdaptorTrampoline); | 854 Builtins::kArgumentsAdaptorTrampoline); |
| 855 } | 855 } |
| 856 | 856 |
| 857 | 857 |
| 858 Code* InternalFrame::unchecked_code() const { | 858 Code* InternalFrame::unchecked_code() const { |
| 859 const int offset = InternalFrameConstants::kCodeOffset; | 859 const int offset = InternalFrameConstants::kCodeOffset; |
| 860 Object* code = Memory::Object_at(fp() + offset); | 860 Object* code = Memory::Object_at(fp() + offset); |
| 861 ASSERT(code != NULL); | 861 ASSERT(code != NULL); |
| 862 return reinterpret_cast<Code*>(code); | 862 return reinterpret_cast<Code*>(code); |
| 863 } | 863 } |
| 864 | 864 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 ZoneList<StackFrame*> list(10); | 1233 ZoneList<StackFrame*> list(10); |
| 1234 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1234 for (StackFrameIterator it; !it.done(); it.Advance()) { |
| 1235 StackFrame* frame = AllocateFrameCopy(it.frame()); | 1235 StackFrame* frame = AllocateFrameCopy(it.frame()); |
| 1236 list.Add(frame); | 1236 list.Add(frame); |
| 1237 } | 1237 } |
| 1238 return list.ToVector(); | 1238 return list.ToVector(); |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 | 1241 |
| 1242 } } // namespace v8::internal | 1242 } } // namespace v8::internal |
| OLD | NEW |