OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_EFFECTS_H_ | 5 #ifndef V8_EFFECTS_H_ |
6 #define V8_EFFECTS_H_ | 6 #define V8_EFFECTS_H_ |
7 | 7 |
8 #include "src/v8.h" | |
9 | |
10 #include "src/types.h" | 8 #include "src/types.h" |
11 | 9 |
12 namespace v8 { | 10 namespace v8 { |
13 namespace internal { | 11 namespace internal { |
14 | 12 |
15 | 13 |
16 // A simple struct to represent (write) effects. A write is represented as a | 14 // A simple struct to represent (write) effects. A write is represented as a |
17 // modification of type bounds (e.g. of a variable). | 15 // modification of type bounds (e.g. of a variable). |
18 // | 16 // |
19 // An effect can either be definite, if the write is known to have taken place, | 17 // An effect can either be definite, if the write is known to have taken place, |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 NestedEffects result = *this; | 325 NestedEffects result = *this; |
328 result.pop(); | 326 result.pop(); |
329 DCHECK(!this->is_empty()); | 327 DCHECK(!this->is_empty()); |
330 return result; | 328 return result; |
331 } | 329 } |
332 }; | 330 }; |
333 | 331 |
334 } } // namespace v8::internal | 332 } } // namespace v8::internal |
335 | 333 |
336 #endif // V8_EFFECTS_H_ | 334 #endif // V8_EFFECTS_H_ |
OLD | NEW |