| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index a9b0cd4673f2bec1fc9c0a2a3397ed24cc3e510b..ef1dd30b227b1ec9a263d27c85ce1ec940715b32 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -1108,6 +1108,14 @@ class Isolate {
|
| // Given an address occupied by a live code object, return that object.
|
| Object* FindCodeObject(Address a);
|
|
|
| + int NextOptimizationId() {
|
| + int id = next_optimization_id_++;
|
| + if (!Smi::IsValid(next_optimization_id_)) {
|
| + next_optimization_id_ = 0;
|
| + }
|
| + return id;
|
| + }
|
| +
|
| private:
|
| Isolate();
|
|
|
| @@ -1340,6 +1348,8 @@ class Isolate {
|
| // Counts deopt points if deopt_every_n_times is enabled.
|
| unsigned int stress_deopt_count_;
|
|
|
| + int next_optimization_id_;
|
| +
|
| friend class ExecutionAccess;
|
| friend class HandleScopeImplementer;
|
| friend class IsolateInitializer;
|
|
|