| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 virtual void GetFunctions(List<JSFunction*>* functions); | 565 virtual void GetFunctions(List<JSFunction*>* functions); |
| 566 | 566 |
| 567 virtual void Summarize(List<FrameSummary>* frames); | 567 virtual void Summarize(List<FrameSummary>* frames); |
| 568 | 568 |
| 569 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); | 569 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); |
| 570 | 570 |
| 571 protected: | 571 protected: |
| 572 inline explicit OptimizedFrame(StackFrameIterator* iterator); | 572 inline explicit OptimizedFrame(StackFrameIterator* iterator); |
| 573 | 573 |
| 574 private: | 574 private: |
| 575 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id); |
| 576 |
| 575 friend class StackFrameIterator; | 577 friend class StackFrameIterator; |
| 576 }; | 578 }; |
| 577 | 579 |
| 578 | 580 |
| 579 // Arguments adaptor frames are automatically inserted below | 581 // Arguments adaptor frames are automatically inserted below |
| 580 // JavaScript frames when the actual number of parameters does not | 582 // JavaScript frames when the actual number of parameters does not |
| 581 // match the formal number of parameters. | 583 // match the formal number of parameters. |
| 582 class ArgumentsAdaptorFrame: public JavaScriptFrame { | 584 class ArgumentsAdaptorFrame: public JavaScriptFrame { |
| 583 public: | 585 public: |
| 584 virtual Type type() const { return ARGUMENTS_ADAPTOR; } | 586 virtual Type type() const { return ARGUMENTS_ADAPTOR; } |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 }; | 888 }; |
| 887 | 889 |
| 888 | 890 |
| 889 // Reads all frames on the current stack and copies them into the current | 891 // Reads all frames on the current stack and copies them into the current |
| 890 // zone memory. | 892 // zone memory. |
| 891 Vector<StackFrame*> CreateStackMap(); | 893 Vector<StackFrame*> CreateStackMap(); |
| 892 | 894 |
| 893 } } // namespace v8::internal | 895 } } // namespace v8::internal |
| 894 | 896 |
| 895 #endif // V8_FRAMES_H_ | 897 #endif // V8_FRAMES_H_ |
| OLD | NEW |