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

Side by Side Diff: src/debug-debugger.js

Issue 1090003: LiveEdit: update breakpoint positions for non-changed functions (Closed)
Patch Set: follow codereview Created 10 years, 8 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
« no previous file with comments | « no previous file | src/liveedit.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 BreakPoint.prototype.func = function() { 117 BreakPoint.prototype.func = function() {
118 return this.func_; 118 return this.func_;
119 }; 119 };
120 120
121 121
122 BreakPoint.prototype.source_position = function() { 122 BreakPoint.prototype.source_position = function() {
123 return this.source_position_; 123 return this.source_position_;
124 }; 124 };
125 125
126 126
127 BreakPoint.prototype.updateSourcePosition = function(new_position, script) {
128 this.source_position_ = new_position;
129 // TODO(635): also update line and column.
130 };
131
132
127 BreakPoint.prototype.hit_count = function() { 133 BreakPoint.prototype.hit_count = function() {
128 return this.hit_count_; 134 return this.hit_count_;
129 }; 135 };
130 136
131 137
132 BreakPoint.prototype.active = function() { 138 BreakPoint.prototype.active = function() {
133 if (this.script_break_point()) { 139 if (this.script_break_point()) {
134 return this.script_break_point().active(); 140 return this.script_break_point().active();
135 } 141 }
136 return this.active_; 142 return this.active_;
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 case 'string': 2149 case 'string':
2144 case 'number': 2150 case 'number':
2145 json = value; 2151 json = value;
2146 break 2152 break
2147 2153
2148 default: 2154 default:
2149 json = null; 2155 json = null;
2150 } 2156 }
2151 return json; 2157 return json;
2152 } 2158 }
OLDNEW
« no previous file with comments | « no previous file | src/liveedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698