| Index: src/codegen.cc
|
| ===================================================================
|
| --- src/codegen.cc (revision 3149)
|
| +++ src/codegen.cc (working copy)
|
| @@ -551,4 +551,20 @@
|
| }
|
|
|
|
|
| +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
|
|
|