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

Unified Diff: tools/ll_prof.py

Issue 1871013002: Version 5.1.281.2 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ll_prof.py
diff --git a/tools/ll_prof.py b/tools/ll_prof.py
index 6d04ab8d73e20ef41b9900f070c9dee4189f9bc7..ca2cb00e4bc555cebb166716d5ec4465cc17e488 100755
--- a/tools/ll_prof.py
+++ b/tools/ll_prof.py
@@ -199,8 +199,12 @@ class Code(object):
self.origin)
def _GetDisasmLines(self, arch, options):
- inplace = True
- filename = self.origin
+ if self.origin == JS_ORIGIN:
+ inplace = False
+ filename = options.log + ".ll"
+ else:
+ inplace = True
+ filename = self.origin
return disasm.GetDisasmLines(filename,
self.origin_offset,
self.end_address - self.start_address,
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698