OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 18 matching lines...) Expand all Loading... |
29 #define V8_JUMP_TARGET_LIGHT_INL_H_ | 29 #define V8_JUMP_TARGET_LIGHT_INL_H_ |
30 | 30 |
31 #include "virtual-frame-inl.h" | 31 #include "virtual-frame-inl.h" |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 // Construct a jump target. | 36 // Construct a jump target. |
37 JumpTarget::JumpTarget(Directionality direction) | 37 JumpTarget::JumpTarget(Directionality direction) |
38 : entry_frame_set_(false), | 38 : entry_frame_set_(false), |
| 39 direction_(direction), |
39 entry_frame_(kInvalidVirtualFrameInitializer) { | 40 entry_frame_(kInvalidVirtualFrameInitializer) { |
40 } | 41 } |
41 | 42 |
42 JumpTarget::JumpTarget() | 43 JumpTarget::JumpTarget() |
43 : entry_frame_set_(false), | 44 : entry_frame_set_(false), |
| 45 direction_(FORWARD_ONLY), |
44 entry_frame_(kInvalidVirtualFrameInitializer) { | 46 entry_frame_(kInvalidVirtualFrameInitializer) { |
45 } | 47 } |
46 | 48 |
47 | 49 |
48 BreakTarget::BreakTarget() { } | 50 BreakTarget::BreakTarget() { } |
| 51 BreakTarget::BreakTarget(JumpTarget::Directionality direction) |
| 52 : JumpTarget(direction) { } |
49 | 53 |
50 } } // namespace v8::internal | 54 } } // namespace v8::internal |
51 | 55 |
52 #endif // V8_JUMP_TARGET_LIGHT_INL_H_ | 56 #endif // V8_JUMP_TARGET_LIGHT_INL_H_ |
OLD | NEW |