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_DEOPTIMIZER_H_ | 5 #ifndef V8_DEOPTIMIZER_H_ |
6 #define V8_DEOPTIMIZER_H_ | 6 #define V8_DEOPTIMIZER_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 unsigned output_offset, | 609 unsigned output_offset, |
610 const char* debug_hint_string); | 610 const char* debug_hint_string); |
611 void DebugPrintOutputSlot(intptr_t value, int frame_index, | 611 void DebugPrintOutputSlot(intptr_t value, int frame_index, |
612 unsigned output_offset, | 612 unsigned output_offset, |
613 const char* debug_hint_string); | 613 const char* debug_hint_string); |
614 | 614 |
615 unsigned ComputeInputFrameSize() const; | 615 unsigned ComputeInputFrameSize() const; |
616 unsigned ComputeFixedSize(JSFunction* function) const; | 616 unsigned ComputeFixedSize(JSFunction* function) const; |
617 | 617 |
618 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; | 618 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; |
619 unsigned ComputeOutgoingArgumentSize() const; | 619 static unsigned ComputeOutgoingArgumentSize(Code* code, unsigned bailout_id); |
620 | 620 |
621 Object* ComputeLiteral(int index) const; | 621 Object* ComputeLiteral(int index) const; |
622 | 622 |
623 static void GenerateDeoptimizationEntries( | 623 static void GenerateDeoptimizationEntries( |
624 MacroAssembler* masm, int count, BailoutType type); | 624 MacroAssembler* masm, int count, BailoutType type); |
625 | 625 |
626 // Marks all the code in the given context for deoptimization. | 626 // Marks all the code in the given context for deoptimization. |
627 static void MarkAllCodeForContext(Context* native_context); | 627 static void MarkAllCodeForContext(Context* native_context); |
628 | 628 |
629 // Visit all the known optimized functions in a given context. | 629 // Visit all the known optimized functions in a given context. |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 Object** expression_stack_; | 1139 Object** expression_stack_; |
1140 int source_position_; | 1140 int source_position_; |
1141 | 1141 |
1142 friend class Deoptimizer; | 1142 friend class Deoptimizer; |
1143 }; | 1143 }; |
1144 | 1144 |
1145 } // namespace internal | 1145 } // namespace internal |
1146 } // namespace v8 | 1146 } // namespace v8 |
1147 | 1147 |
1148 #endif // V8_DEOPTIMIZER_H_ | 1148 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |