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

Side by Side Diff: src/debug/liveedit.cc

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/debug/debug.h ('k') | src/disassembler.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 #include "src/debug/liveedit.h" 5 #include "src/debug/liveedit.h"
6 6
7 #include "src/ast/scopeinfo.h" 7 #include "src/ast/scopeinfo.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 code->instruction_start()); 1300 code->instruction_start());
1301 1301
1302 { 1302 {
1303 for (RelocIterator it(*code); !it.done(); it.next()) { 1303 for (RelocIterator it(*code); !it.done(); it.next()) {
1304 RelocInfo* rinfo = it.rinfo(); 1304 RelocInfo* rinfo = it.rinfo();
1305 if (RelocInfo::IsPosition(rinfo->rmode())) { 1305 if (RelocInfo::IsPosition(rinfo->rmode())) {
1306 int position = static_cast<int>(rinfo->data()); 1306 int position = static_cast<int>(rinfo->data());
1307 int new_position = TranslatePosition(position, 1307 int new_position = TranslatePosition(position,
1308 position_change_array); 1308 position_change_array);
1309 if (position != new_position) { 1309 if (position != new_position) {
1310 RelocInfo info_copy(rinfo->pc(), rinfo->rmode(), new_position, NULL); 1310 RelocInfo info_copy(rinfo->isolate(), rinfo->pc(), rinfo->rmode(),
1311 new_position, NULL);
1311 buffer_writer.Write(&info_copy); 1312 buffer_writer.Write(&info_copy);
1312 continue; 1313 continue;
1313 } 1314 }
1314 } 1315 }
1315 if (RelocInfo::IsRealRelocMode(rinfo->rmode())) { 1316 if (RelocInfo::IsRealRelocMode(rinfo->rmode())) {
1316 buffer_writer.Write(it.rinfo()); 1317 buffer_writer.Write(it.rinfo());
1317 } 1318 }
1318 } 1319 }
1319 } 1320 }
1320 1321
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 isolate_->active_function_info_listener()->FunctionCode(code); 2001 isolate_->active_function_info_listener()->FunctionCode(code);
2001 } 2002 }
2002 2003
2003 2004
2004 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2005 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2005 return isolate->active_function_info_listener() != NULL; 2006 return isolate->active_function_info_listener() != NULL;
2006 } 2007 }
2007 2008
2008 } // namespace internal 2009 } // namespace internal
2009 } // namespace v8 2010 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/debug.h ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698