| Index: src/deoptimizer.h
|
| diff --git a/src/deoptimizer.h b/src/deoptimizer.h
|
| index 4d84fb76e879f005c6f11abfb971334f6ff5d13f..86c177d1af67bcb58509668bdd325a809110d1b0 100644
|
| --- a/src/deoptimizer.h
|
| +++ b/src/deoptimizer.h
|
| @@ -254,7 +254,7 @@ class TranslatedState {
|
| void Prepare(bool has_adapted_arguments, Address stack_frame_pointer);
|
|
|
| // Store newly materialized values into the isolate.
|
| - void StoreMaterializedValuesAndDeopt();
|
| + void StoreMaterializedValuesAndDeopt(JavaScriptFrame* frame);
|
|
|
| typedef std::vector<TranslatedFrame>::iterator iterator;
|
| iterator begin() { return frames_.begin(); }
|
| @@ -419,8 +419,9 @@ class Deoptimizer : public Malloced {
|
|
|
| // Deoptimize the function now. Its current optimized code will never be run
|
| // again and any activations of the optimized code will get deoptimized when
|
| - // execution returns.
|
| - static void DeoptimizeFunction(JSFunction* function);
|
| + // execution returns. If {code} is specified then the given code is targeted
|
| + // instead of the function code (e.g. OSR code not installed on function).
|
| + static void DeoptimizeFunction(JSFunction* function, Code* code = nullptr);
|
|
|
| // Deoptimize all code in the given isolate.
|
| static void DeoptimizeAll(Isolate* isolate);
|
|
|