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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 } | 448 } |
449 | 449 |
450 int raw() const { return value_; } | 450 int raw() const { return value_; } |
451 | 451 |
452 private: | 452 private: |
453 typedef BitField<int, 0, 9> InliningIdField; | 453 typedef BitField<int, 0, 9> InliningIdField; |
454 | 454 |
455 // Offset from the start of the inlined function. | 455 // Offset from the start of the inlined function. |
456 typedef BitField<int, 9, 23> PositionField; | 456 typedef BitField<int, 9, 23> PositionField; |
457 | 457 |
458 // On HPositionInfo can use this constructor. | |
459 explicit HSourcePosition(int value) : value_(value) { } | 458 explicit HSourcePosition(int value) : value_(value) { } |
460 | 459 |
461 friend class HPositionInfo; | 460 friend class HPositionInfo; |
| 461 friend class LCodeGenBase; |
462 | 462 |
463 // If FLAG_hydrogen_track_positions is set contains bitfields InliningIdField | 463 // If FLAG_hydrogen_track_positions is set contains bitfields InliningIdField |
464 // and PositionField. | 464 // and PositionField. |
465 // Otherwise contains absolute offset from the script start. | 465 // Otherwise contains absolute offset from the script start. |
466 int value_; | 466 int value_; |
467 }; | 467 }; |
468 | 468 |
469 | 469 |
470 OStream& operator<<(OStream& os, const HSourcePosition& p); | 470 OStream& operator<<(OStream& os, const HSourcePosition& p); |
471 | 471 |
(...skipping 7423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7895 }; | 7895 }; |
7896 | 7896 |
7897 | 7897 |
7898 | 7898 |
7899 #undef DECLARE_INSTRUCTION | 7899 #undef DECLARE_INSTRUCTION |
7900 #undef DECLARE_CONCRETE_INSTRUCTION | 7900 #undef DECLARE_CONCRETE_INSTRUCTION |
7901 | 7901 |
7902 } } // namespace v8::internal | 7902 } } // namespace v8::internal |
7903 | 7903 |
7904 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7904 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |