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

Unified Diff: src/deoptimizer.cc

Issue 2272653002: [deoptimizer] Remove obsolete constructor argument. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/deoptimizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 21c39023b0353a3509a6166c6ba79db7497c406b..2afc8dd183240a50515abf04c22e4c0c34452084 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -73,13 +73,8 @@ Deoptimizer* Deoptimizer::New(JSFunction* function,
Address from,
int fp_to_sp_delta,
Isolate* isolate) {
- Deoptimizer* deoptimizer = new Deoptimizer(isolate,
- function,
- type,
- bailout_id,
- from,
- fp_to_sp_delta,
- NULL);
+ Deoptimizer* deoptimizer = new Deoptimizer(isolate, function, type,
+ bailout_id, from, fp_to_sp_delta);
CHECK(isolate->deoptimizer_data()->current_ == NULL);
isolate->deoptimizer_data()->current_ = deoptimizer;
return deoptimizer;
@@ -467,7 +462,7 @@ const char* Deoptimizer::MessageFor(BailoutType type) {
Deoptimizer::Deoptimizer(Isolate* isolate, JSFunction* function,
BailoutType type, unsigned bailout_id, Address from,
- int fp_to_sp_delta, Code* optimized_code)
+ int fp_to_sp_delta)
: isolate_(isolate),
function_(function),
bailout_id_(bailout_id),
@@ -510,7 +505,7 @@ Deoptimizer::Deoptimizer(Isolate* isolate, JSFunction* function,
function->shared()->set_opt_count(opt_count);
}
}
- compiled_code_ = FindOptimizedCode(function, optimized_code);
+ compiled_code_ = FindOptimizedCode(function);
#if DEBUG
DCHECK(compiled_code_ != NULL);
if (type == EAGER || type == SOFT || type == LAZY) {
@@ -539,9 +534,7 @@ Deoptimizer::Deoptimizer(Isolate* isolate, JSFunction* function,
input_->SetFrameType(frame_type);
}
-
-Code* Deoptimizer::FindOptimizedCode(JSFunction* function,
- Code* optimized_code) {
+Code* Deoptimizer::FindOptimizedCode(JSFunction* function) {
switch (bailout_type_) {
case Deoptimizer::SOFT:
case Deoptimizer::EAGER:
« no previous file with comments | « src/deoptimizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698