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

Unified Diff: src/debug/liveedit.cc

Issue 2224923003: [interpreter] Add ability to preserve bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable flag. Created 4 years, 4 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 | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/liveedit.cc
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc
index 26dc9eb5d1d4160b40934efe5408ec957db47e01..f1ee6dbeb8914e6213cfb45841fc05301583dbbc 100644
--- a/src/debug/liveedit.cc
+++ b/src/debug/liveedit.cc
@@ -986,9 +986,9 @@ void LiveEdit::ReplaceFunctionCode(
// Clear old bytecode. This will trigger self-healing if we do not install
// new bytecode.
shared_info->ClearBytecodeArray();
- if (old_code->is_interpreter_trampoline_builtin()) {
+ if (!shared_info->HasBaselineCode()) {
// Every function from this SFI is interpreted.
- if (new_code->is_interpreter_trampoline_builtin()) {
+ if (!new_shared_info->HasBaselineCode()) {
// We have newly compiled bytecode. Simply replace the old one.
shared_info->set_bytecode_array(new_shared_info->bytecode_array());
} else {
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698