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