Lines Matching defs:resource
1146 v8::String::ExternalStringResourceBase* resource =
1150 if (resource != nullptr) {
1151 resource->Dispose();
1157 DEF_GETTER(ExternalOneByteString, resource,
1170 if (resource(isolate)->IsCacheable())
1175 reinterpret_cast<Address>(resource(isolate)->data()),
1181 Isolate* isolate, const ExternalOneByteString::Resource* resource) {
1182 set_resource(isolate, resource);
1183 size_t new_payload = resource == nullptr ? 0 : resource->length();
1190 Isolate* isolate, const ExternalOneByteString::Resource* resource) {
1192 reinterpret_cast<Address>(resource),
1194 if (resource != nullptr) update_data_cache(isolate);
1200 auto res = resource(cage_base);
1209 // uncached string with an uncacheable resource.
1229 DEF_GETTER(ExternalTwoByteString, resource,
1242 if (resource(isolate)->IsCacheable())
1247 reinterpret_cast<Address>(resource(isolate)->data()),
1253 Isolate* isolate, const ExternalTwoByteString::Resource* resource) {
1254 set_resource(isolate, resource);
1255 size_t new_payload = resource == nullptr ? 0 : resource->length() * 2;
1262 Isolate* isolate, const ExternalTwoByteString::Resource* resource) {
1264 reinterpret_cast<Address>(resource),
1266 if (resource != nullptr) update_data_cache(isolate);
1272 auto res = resource(cage_base);
1281 // uncached string with an uncacheable resource.