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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 Address slot_address_; | 55 Address slot_address_; |
56 double val_; | 56 double val_; |
57 }; | 57 }; |
58 | 58 |
59 | 59 |
60 class OptimizedFunctionVisitor BASE_EMBEDDED { | 60 class OptimizedFunctionVisitor BASE_EMBEDDED { |
61 public: | 61 public: |
62 virtual ~OptimizedFunctionVisitor() {} | 62 virtual ~OptimizedFunctionVisitor() {} |
63 | 63 |
64 // Function which is called before iteration of any optimized functions | 64 // Function which is called before iteration of any optimized functions |
65 // from given global context. | 65 // from given native context. |
66 virtual void EnterContext(Context* context) = 0; | 66 virtual void EnterContext(Context* context) = 0; |
67 | 67 |
68 virtual void VisitFunction(JSFunction* function) = 0; | 68 virtual void VisitFunction(JSFunction* function) = 0; |
69 | 69 |
70 // Function which is called after iteration of all optimized functions | 70 // Function which is called after iteration of all optimized functions |
71 // from given global context. | 71 // from given native context. |
72 virtual void LeaveContext(Context* context) = 0; | 72 virtual void LeaveContext(Context* context) = 0; |
73 }; | 73 }; |
74 | 74 |
75 | 75 |
76 class Deoptimizer; | 76 class Deoptimizer; |
77 | 77 |
78 | 78 |
79 class DeoptimizerData { | 79 class DeoptimizerData { |
80 public: | 80 public: |
81 DeoptimizerData(); | 81 DeoptimizerData(); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 Object** expression_stack_; | 789 Object** expression_stack_; |
790 int source_position_; | 790 int source_position_; |
791 | 791 |
792 friend class Deoptimizer; | 792 friend class Deoptimizer; |
793 }; | 793 }; |
794 #endif | 794 #endif |
795 | 795 |
796 } } // namespace v8::internal | 796 } } // namespace v8::internal |
797 | 797 |
798 #endif // V8_DEOPTIMIZER_H_ | 798 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |