OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 virtual ~JumpTarget() {} | 68 virtual ~JumpTarget() {} |
69 | 69 |
70 void Unuse() { | 70 void Unuse() { |
71 entry_frame_set_ = false; | 71 entry_frame_set_ = false; |
72 entry_label_.Unuse(); | 72 entry_label_.Unuse(); |
73 } | 73 } |
74 | 74 |
75 inline CodeGenerator* cgen(); | 75 inline CodeGenerator* cgen(); |
76 | 76 |
| 77 Label* entry_label() { return &entry_label_; } |
| 78 |
77 const VirtualFrame* entry_frame() const { | 79 const VirtualFrame* entry_frame() const { |
78 return entry_frame_set_ ? &entry_frame_ : NULL; | 80 return entry_frame_set_ ? &entry_frame_ : NULL; |
79 } | 81 } |
80 | 82 |
81 void set_entry_frame(VirtualFrame* frame) { | 83 void set_entry_frame(VirtualFrame* frame) { |
82 entry_frame_ = *frame; | 84 entry_frame_ = *frame; |
83 entry_frame_set_ = true; | 85 entry_frame_set_ = true; |
84 } | 86 } |
85 | 87 |
86 // Predicates testing the state of the encapsulated label. | 88 // Predicates testing the state of the encapsulated label. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 180 |
179 private: | 181 private: |
180 // The expected height of the expression stack where the target will | 182 // The expected height of the expression stack where the target will |
181 // be bound, statically known at initialization time. | 183 // be bound, statically known at initialization time. |
182 int expected_height_; | 184 int expected_height_; |
183 }; | 185 }; |
184 | 186 |
185 } } // namespace v8::internal | 187 } } // namespace v8::internal |
186 | 188 |
187 #endif // V8_JUMP_TARGET_LIGHT_H_ | 189 #endif // V8_JUMP_TARGET_LIGHT_H_ |
OLD | NEW |