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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 496 } |
497 | 497 |
498 | 498 |
499 Code* JavaScriptFrame::code() const { | 499 Code* JavaScriptFrame::code() const { |
500 JSFunction* function = JSFunction::cast(this->function()); | 500 JSFunction* function = JSFunction::cast(this->function()); |
501 return function->shared()->code(); | 501 return function->shared()->code(); |
502 } | 502 } |
503 | 503 |
504 | 504 |
505 Code* ArgumentsAdaptorFrame::code() const { | 505 Code* ArgumentsAdaptorFrame::code() const { |
506 return Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline); | 506 return Isolate::Current()->builtins()->builtin( |
| 507 Builtins::ArgumentsAdaptorTrampoline); |
507 } | 508 } |
508 | 509 |
509 | 510 |
510 Code* InternalFrame::code() const { | 511 Code* InternalFrame::code() const { |
511 const int offset = InternalFrameConstants::kCodeOffset; | 512 const int offset = InternalFrameConstants::kCodeOffset; |
512 Object* code = Memory::Object_at(fp() + offset); | 513 Object* code = Memory::Object_at(fp() + offset); |
513 ASSERT(code != NULL); | 514 ASSERT(code != NULL); |
514 return Code::cast(code); | 515 return Code::cast(code); |
515 } | 516 } |
516 | 517 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 ZoneList<StackFrame*> list(10); | 818 ZoneList<StackFrame*> list(10); |
818 for (StackFrameIterator it; !it.done(); it.Advance()) { | 819 for (StackFrameIterator it; !it.done(); it.Advance()) { |
819 StackFrame* frame = AllocateFrameCopy(it.frame()); | 820 StackFrame* frame = AllocateFrameCopy(it.frame()); |
820 list.Add(frame); | 821 list.Add(frame); |
821 } | 822 } |
822 return list.ToVector(); | 823 return list.ToVector(); |
823 } | 824 } |
824 | 825 |
825 | 826 |
826 } } // namespace v8::internal | 827 } } // namespace v8::internal |
OLD | NEW |