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

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

Issue 587223002: Emit source positions in deopt comments, too. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « src/deoptimizer.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/deoptimizer.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698