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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Accessors. | 86 // Accessors. |
87 CodeGenerator* code_generator() const { return cgen_; } | 87 CodeGenerator* code_generator() const { return cgen_; } |
88 | 88 |
89 Label* entry_label() { return &entry_label_; } | 89 Label* entry_label() { return &entry_label_; } |
90 | 90 |
91 VirtualFrame* entry_frame() const { return entry_frame_; } | 91 VirtualFrame* entry_frame() const { return entry_frame_; } |
92 void set_entry_frame(VirtualFrame* frame) { | 92 void set_entry_frame(VirtualFrame* frame) { |
93 entry_frame_ = frame; | 93 entry_frame_ = frame; |
94 } | 94 } |
95 | 95 |
96 void make_bidirectional() { direction_ = BIDIRECTIONAL; } | |
97 | |
98 // Predicates testing the state of the encapsulated label. | 96 // Predicates testing the state of the encapsulated label. |
99 bool is_bound() const { return is_bound_; } | 97 bool is_bound() const { return is_bound_; } |
100 bool is_linked() const { return is_linked_; } | 98 bool is_linked() const { return is_linked_; } |
101 bool is_unused() const { return !is_bound() && !is_linked(); } | 99 bool is_unused() const { return !is_bound() && !is_linked(); } |
102 | 100 |
103 // Emit a jump to the target. There must be a current frame at the | 101 // Emit a jump to the target. There must be a current frame at the |
104 // jump and there will be no current frame after the jump. | 102 // jump and there will be no current frame after the jump. |
105 virtual void Jump(); | 103 virtual void Jump(); |
106 void Jump(Result* arg); | 104 void Jump(Result* arg); |
107 void Jump(Result* arg0, Result* arg1); | 105 void Jump(Result* arg0, Result* arg1); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 bool is_shadowing_; | 303 bool is_shadowing_; |
306 #endif | 304 #endif |
307 | 305 |
308 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); | 306 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); |
309 }; | 307 }; |
310 | 308 |
311 | 309 |
312 } } // namespace v8::internal | 310 } } // namespace v8::internal |
313 | 311 |
314 #endif // V8_JUMP_TARGET_H_ | 312 #endif // V8_JUMP_TARGET_H_ |
OLD | NEW |