Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 57d5f51898fc9a5a156df37b523486719861c2fc..732615f746ddac50326988e5d2a37af838211be6 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -552,4 +552,20 @@ void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
} |
+bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { |
+ Object* cache = info()->load_stub_cache(); |
+ if (cache->IsUndefined()) { |
+ return false; |
+ } else { |
+ *code_out = Code::cast(cache); |
+ return true; |
+ } |
+} |
+ |
+ |
+void ApiGetterEntryStub::SetCustomCache(Code* value) { |
+ info()->set_load_stub_cache(value); |
+} |
+ |
+ |
} } // namespace v8::internal |