| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 value_ = static_cast<int>(InliningIdField::update(value_, inlining_id)); | 444 value_ = static_cast<int>(InliningIdField::update(value_, inlining_id)); |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 | 447 |
| 448 int raw() const { return value_; } | 448 int raw() const { return value_; } |
| 449 | 449 |
| 450 private: | 450 private: |
| 451 typedef BitField<int, 0, 9> InliningIdField; | 451 typedef BitField<int, 0, 9> InliningIdField; |
| 452 | 452 |
| 453 // Offset from the start of the inlined function. | 453 // Offset from the start of the inlined function. |
| 454 typedef BitField<int, 9, 22> PositionField; | 454 typedef BitField<int, 9, 23> PositionField; |
| 455 | 455 |
| 456 // On HPositionInfo can use this constructor. | 456 // On HPositionInfo can use this constructor. |
| 457 explicit HSourcePosition(int value) : value_(value) { } | 457 explicit HSourcePosition(int value) : value_(value) { } |
| 458 | 458 |
| 459 friend class HPositionInfo; | 459 friend class HPositionInfo; |
| 460 | 460 |
| 461 // If FLAG_hydrogen_track_positions is set contains bitfields InliningIdField | 461 // If FLAG_hydrogen_track_positions is set contains bitfields InliningIdField |
| 462 // and PositionField. | 462 // and PositionField. |
| 463 // Otherwise contains absolute offset from the script start. | 463 // Otherwise contains absolute offset from the script start. |
| 464 int value_; | 464 int value_; |
| (...skipping 7394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7859 }; | 7859 }; |
| 7860 | 7860 |
| 7861 | 7861 |
| 7862 | 7862 |
| 7863 #undef DECLARE_INSTRUCTION | 7863 #undef DECLARE_INSTRUCTION |
| 7864 #undef DECLARE_CONCRETE_INSTRUCTION | 7864 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7865 | 7865 |
| 7866 } } // namespace v8::internal | 7866 } } // namespace v8::internal |
| 7867 | 7867 |
| 7868 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7868 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |