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

Side by Side Diff: src/objects.cc

Issue 1965343002: [Interpreter] Support compiling for baseline on return from interpreted function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update based on interpreter actually returning to marker. Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 12756 matching lines...) Expand 10 before | Expand all | Expand 10 after
12767 ClearTypeFeedbackInfo(); 12767 ClearTypeFeedbackInfo();
12768 set_ic_age(new_ic_age); 12768 set_ic_age(new_ic_age);
12769 if (code()->kind() == Code::FUNCTION) { 12769 if (code()->kind() == Code::FUNCTION) {
12770 code()->set_profiler_ticks(0); 12770 code()->set_profiler_ticks(0);
12771 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { 12771 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) {
12772 // Re-enable optimizations if they were disabled due to opt_count limit. 12772 // Re-enable optimizations if they were disabled due to opt_count limit.
12773 set_optimization_disabled(false); 12773 set_optimization_disabled(false);
12774 } 12774 }
12775 set_opt_count(0); 12775 set_opt_count(0);
12776 set_deopt_count(0); 12776 set_deopt_count(0);
12777 } else if (code()->is_interpreter_entry_trampoline()) { 12777 } else if (code()->is_interpreter_trampoline_builtin()) {
12778 set_profiler_ticks(0); 12778 set_profiler_ticks(0);
12779 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { 12779 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) {
12780 // Re-enable optimizations if they were disabled due to opt_count limit. 12780 // Re-enable optimizations if they were disabled due to opt_count limit.
12781 set_optimization_disabled(false); 12781 set_optimization_disabled(false);
12782 } 12782 }
12783 set_opt_count(0); 12783 set_opt_count(0);
12784 set_deopt_count(0); 12784 set_deopt_count(0);
12785 } 12785 }
12786 } 12786 }
12787 12787
(...skipping 5470 matching lines...) Expand 10 before | Expand all | Expand 10 after
18258 if (cell->value() != *new_value) { 18258 if (cell->value() != *new_value) {
18259 cell->set_value(*new_value); 18259 cell->set_value(*new_value);
18260 Isolate* isolate = cell->GetIsolate(); 18260 Isolate* isolate = cell->GetIsolate();
18261 cell->dependent_code()->DeoptimizeDependentCodeGroup( 18261 cell->dependent_code()->DeoptimizeDependentCodeGroup(
18262 isolate, DependentCode::kPropertyCellChangedGroup); 18262 isolate, DependentCode::kPropertyCellChangedGroup);
18263 } 18263 }
18264 } 18264 }
18265 18265
18266 } // namespace internal 18266 } // namespace internal
18267 } // namespace v8 18267 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/x64/builtins-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698