| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index e37f6d1b2592a84f11d0fa1b7748b768d185e1c5..a96415e0906436d021cf74d641c04e3dc8f25844 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -10432,8 +10432,8 @@ bool Code::allowed_in_shared_map_code_cache() {
|
| }
|
|
|
|
|
| -void Code::MakeCodeAgeSequenceYoung(byte* sequence) {
|
| - PatchPlatformCodeAge(sequence, kNoAge, NO_MARKING_PARITY);
|
| +void Code::MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate) {
|
| + PatchPlatformCodeAge(isolate, sequence, kNoAge, NO_MARKING_PARITY);
|
| }
|
|
|
|
|
| @@ -10444,7 +10444,9 @@ void Code::MakeOlder(MarkingParity current_parity) {
|
| MarkingParity code_parity;
|
| GetCodeAgeAndParity(sequence, &age, &code_parity);
|
| if (age != kLastCodeAge && code_parity != current_parity) {
|
| - PatchPlatformCodeAge(sequence, static_cast<Age>(age + 1),
|
| + PatchPlatformCodeAge(GetIsolate(),
|
| + sequence,
|
| + static_cast<Age>(age + 1),
|
| current_parity);
|
| }
|
| }
|
| @@ -10507,8 +10509,7 @@ void Code::GetCodeAgeAndParity(Code* code, Age* age,
|
| }
|
|
|
|
|
| -Code* Code::GetCodeAgeStub(Age age, MarkingParity parity) {
|
| - Isolate* isolate = Isolate::Current();
|
| +Code* Code::GetCodeAgeStub(Isolate* isolate, Age age, MarkingParity parity) {
|
| Builtins* builtins = isolate->builtins();
|
| switch (age) {
|
| #define HANDLE_CODE_AGE(AGE) \
|
|
|