| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index d93a862294aa13d7afde5b54b4332faaf752ff3f..6c2626d8b0faba5b00e3f7f368b1999ba25211bf 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -1153,6 +1153,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();
|
|
|
| @@ -1384,6 +1392,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;
|
|
|