| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
| 6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 // returns the expected number of stack slots at the handler site. | 635 // returns the expected number of stack slots at the handler site. |
| 636 virtual int LookupExceptionHandlerInTable( | 636 virtual int LookupExceptionHandlerInTable( |
| 637 int* stack_slots, HandlerTable::CatchPrediction* prediction); | 637 int* stack_slots, HandlerTable::CatchPrediction* prediction); |
| 638 | 638 |
| 639 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); | 639 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); |
| 640 | 640 |
| 641 protected: | 641 protected: |
| 642 inline explicit OptimizedFrame(StackFrameIteratorBase* iterator); | 642 inline explicit OptimizedFrame(StackFrameIteratorBase* iterator); |
| 643 | 643 |
| 644 private: | 644 private: |
| 645 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id); | |
| 646 | |
| 647 friend class StackFrameIteratorBase; | 645 friend class StackFrameIteratorBase; |
| 648 }; | 646 }; |
| 649 | 647 |
| 650 | 648 |
| 651 // Arguments adaptor frames are automatically inserted below | 649 // Arguments adaptor frames are automatically inserted below |
| 652 // JavaScript frames when the actual number of parameters does not | 650 // JavaScript frames when the actual number of parameters does not |
| 653 // match the formal number of parameters. | 651 // match the formal number of parameters. |
| 654 class ArgumentsAdaptorFrame: public JavaScriptFrame { | 652 class ArgumentsAdaptorFrame: public JavaScriptFrame { |
| 655 public: | 653 public: |
| 656 virtual Type type() const { return ARGUMENTS_ADAPTOR; } | 654 virtual Type type() const { return ARGUMENTS_ADAPTOR; } |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 }; | 890 }; |
| 893 | 891 |
| 894 | 892 |
| 895 // Reads all frames on the current stack and copies them into the current | 893 // Reads all frames on the current stack and copies them into the current |
| 896 // zone memory. | 894 // zone memory. |
| 897 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 895 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 898 | 896 |
| 899 } } // namespace v8::internal | 897 } } // namespace v8::internal |
| 900 | 898 |
| 901 #endif // V8_FRAMES_H_ | 899 #endif // V8_FRAMES_H_ |
| OLD | NEW |