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

Side by Side Diff: src/debug/debug.h

Issue 1477343002: Pass an isolate to RelocInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years 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
« no previous file with comments | « src/assembler.cc ('k') | src/debug/liveedit.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_DEBUG_DEBUG_H_ 5 #ifndef V8_DEBUG_DEBUG_H_
6 #define V8_DEBUG_DEBUG_H_ 6 #define V8_DEBUG_DEBUG_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Handle<Object> BreakPointObjects() const; 99 Handle<Object> BreakPointObjects() const;
100 100
101 void SetBreakPoint(Handle<Object> break_point_object); 101 void SetBreakPoint(Handle<Object> break_point_object);
102 void ClearBreakPoint(Handle<Object> break_point_object); 102 void ClearBreakPoint(Handle<Object> break_point_object);
103 103
104 void SetOneShot(); 104 void SetOneShot();
105 void ClearOneShot(); 105 void ClearOneShot();
106 106
107 107
108 inline RelocInfo rinfo() const { 108 inline RelocInfo rinfo() const {
109 return RelocInfo(pc(), rmode(), data_, code()); 109 return RelocInfo(debug_info_->GetIsolate(), pc(), rmode(), data_, code());
110 } 110 }
111 111
112 inline int position() const { return position_; } 112 inline int position() const { return position_; }
113 inline int statement_position() const { return statement_position_; } 113 inline int statement_position() const { return statement_position_; }
114 114
115 inline Address pc() const { return code()->entry() + pc_offset_; } 115 inline Address pc() const { return code()->entry() + pc_offset_; }
116 116
117 inline RelocInfo::Mode rmode() const { return rmode_; } 117 inline RelocInfo::Mode rmode() const { return rmode_; }
118 118
119 inline Code* code() const { return debug_info_->code(); } 119 inline Code* code() const { return debug_info_->code(); }
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 static void PatchDebugBreakSlot(Isolate* isolate, Address pc, 786 static void PatchDebugBreakSlot(Isolate* isolate, Address pc,
787 Handle<Code> code); 787 Handle<Code> code);
788 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 788 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
789 }; 789 };
790 790
791 791
792 } // namespace internal 792 } // namespace internal
793 } // namespace v8 793 } // namespace v8
794 794
795 #endif // V8_DEBUG_DEBUG_H_ 795 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698