Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: src/hydrogen-instructions.h

Issue 403373002: Fix HSourcePosition when --hydrogen-track-positions is used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698