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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 virtual void Summarize(List<FrameSummary>* frames); | 521 virtual void Summarize(List<FrameSummary>* frames); |
522 | 522 |
523 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); | 523 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); |
524 | 524 |
525 protected: | 525 protected: |
526 explicit OptimizedFrame(StackFrameIterator* iterator) | 526 explicit OptimizedFrame(StackFrameIterator* iterator) |
527 : JavaScriptFrame(iterator) { } | 527 : JavaScriptFrame(iterator) { } |
528 | 528 |
529 private: | 529 private: |
| 530 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id); |
| 531 |
530 friend class StackFrameIterator; | 532 friend class StackFrameIterator; |
531 }; | 533 }; |
532 | 534 |
533 | 535 |
534 // Arguments adaptor frames are automatically inserted below | 536 // Arguments adaptor frames are automatically inserted below |
535 // JavaScript frames when the actual number of parameters does not | 537 // JavaScript frames when the actual number of parameters does not |
536 // match the formal number of parameters. | 538 // match the formal number of parameters. |
537 class ArgumentsAdaptorFrame: public JavaScriptFrame { | 539 class ArgumentsAdaptorFrame: public JavaScriptFrame { |
538 public: | 540 public: |
539 virtual Type type() const { return ARGUMENTS_ADAPTOR; } | 541 virtual Type type() const { return ARGUMENTS_ADAPTOR; } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 }; | 830 }; |
829 | 831 |
830 | 832 |
831 // Reads all frames on the current stack and copies them into the current | 833 // Reads all frames on the current stack and copies them into the current |
832 // zone memory. | 834 // zone memory. |
833 Vector<StackFrame*> CreateStackMap(); | 835 Vector<StackFrame*> CreateStackMap(); |
834 | 836 |
835 } } // namespace v8::internal | 837 } } // namespace v8::internal |
836 | 838 |
837 #endif // V8_FRAMES_H_ | 839 #endif // V8_FRAMES_H_ |
OLD | NEW |