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_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 virtual void PlugTOS() const; | 875 virtual void PlugTOS() const; |
876 virtual void DropAndPlug(int count, Register reg) const; | 876 virtual void DropAndPlug(int count, Register reg) const; |
877 virtual void PrepareTest(Label* materialize_true, | 877 virtual void PrepareTest(Label* materialize_true, |
878 Label* materialize_false, | 878 Label* materialize_false, |
879 Label** if_true, | 879 Label** if_true, |
880 Label** if_false, | 880 Label** if_false, |
881 Label** fall_through) const; | 881 Label** fall_through) const; |
882 virtual bool IsEffect() const { return true; } | 882 virtual bool IsEffect() const { return true; } |
883 }; | 883 }; |
884 | 884 |
| 885 class EnterBlockScopeIfNeeded { |
| 886 public: |
| 887 EnterBlockScopeIfNeeded(FullCodeGenerator* codegen, Scope* scope, |
| 888 BailoutId entry_id, BailoutId declarations_id, |
| 889 BailoutId exit_id); |
| 890 ~EnterBlockScopeIfNeeded(); |
| 891 |
| 892 private: |
| 893 MacroAssembler* masm() const { return codegen_->masm(); } |
| 894 |
| 895 FullCodeGenerator* codegen_; |
| 896 Scope* scope_; |
| 897 Scope* saved_scope_; |
| 898 BailoutId exit_id_; |
| 899 }; |
| 900 |
885 MacroAssembler* masm_; | 901 MacroAssembler* masm_; |
886 CompilationInfo* info_; | 902 CompilationInfo* info_; |
887 Scope* scope_; | 903 Scope* scope_; |
888 Label return_label_; | 904 Label return_label_; |
889 NestedStatement* nesting_stack_; | 905 NestedStatement* nesting_stack_; |
890 int loop_depth_; | 906 int loop_depth_; |
891 ZoneList<Handle<Object> >* globals_; | 907 ZoneList<Handle<Object> >* globals_; |
892 Handle<FixedArray> modules_; | 908 Handle<FixedArray> modules_; |
893 int module_index_; | 909 int module_index_; |
894 const ExpressionContext* context_; | 910 const ExpressionContext* context_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 | 1023 |
1008 Address start_; | 1024 Address start_; |
1009 Address instruction_start_; | 1025 Address instruction_start_; |
1010 uint32_t length_; | 1026 uint32_t length_; |
1011 }; | 1027 }; |
1012 | 1028 |
1013 | 1029 |
1014 } } // namespace v8::internal | 1030 } } // namespace v8::internal |
1015 | 1031 |
1016 #endif // V8_FULL_CODEGEN_H_ | 1032 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |