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

Unified Diff: src/codegen.cc

Issue 1895073002: [compiler] Workaround in code printing without literal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
diff --git a/src/codegen.cc b/src/codegen.cc
index 692fa64bb69d34e2fe2f1ff6c815c2a5b7852b1e..68b71e31b24c7aa725a45e030e11dc2e352d346d 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -161,6 +161,9 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) {
bool print_source =
info->parse_info() && (code->kind() == Code::OPTIMIZED_FUNCTION ||
code->kind() == Code::FUNCTION);
+ // TODO(mstarzinger): Switch this over to use SharedFunctionInfo instead of
+ // the FunctionLiteral, once we have a SharedFunctionInfo for live edit.
+ print_source = print_source && info->literal() != nullptr;
if (print_source) {
FunctionLiteral* literal = info->literal();
Handle<Script> script = info->script();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698