Lines Matching defs:file_name
1021 const std::string& file_name,
1023 DCHECK(IsAbsolutePath(file_name));
1025 MaybeLocal<String> source_text = ReadFile(isolate, file_name.c_str(), false);
1027 std::string fallback_file_name = file_name + ".js";
1030 fallback_file_name = file_name + ".mjs";
1037 std::string msg = "d8: Error reading module from " + file_name;
1050 String::NewFromUtf8(isolate, file_name.c_str()).ToLocalChecked();
1074 String::NewFromUtf8(isolate, file_name.c_str()).ToLocalChecked(),
1086 .insert(std::make_pair(std::make_pair(file_name, module_type),
1090 .insert(std::make_pair(Global<Module>(isolate, module), file_name))
1093 std::string dir_name = DirName(file_name);
1312 std::string file_name = ToSTLString(isolate, specifier);
1313 std::string absolute_path = NormalizePath(file_name, dir_name);
1362 bool Shell::ExecuteModule(Isolate* isolate, const char* file_name) {
1369 std::string absolute_path = NormalizePath(file_name, GetWorkingDirectory());
1429 bool Shell::ExecuteWebSnapshot(Isolate* isolate, const char* file_name) {
1438 std::string absolute_path = NormalizePath(file_name, GetWorkingDirectory());
1461 bool Shell::LoadJSON(Isolate* isolate, const char* file_name) {
1469 std::string absolute_path = NormalizePath(file_name, GetWorkingDirectory());
1473 printf("Error reading '%s'\n", file_name);
2056 std::string file_name = i_isolate->logger()->file_name();
2057 if (!i::Log::IsLoggingToTemporaryFile(file_name)) {
2311 String::Utf8Value file_name(args.GetIsolate(), args[0]);
2312 if (*file_name == nullptr) {
2324 if (!ReadFile(args.GetIsolate(), *file_name).ToLocal(&source)) return;
2369 String::Utf8Value file_name(isolate, args[i]);
2370 if (*file_name == nullptr) {
2378 if (!ReadFile(isolate, *file_name).ToLocal(&source)) return;
2381 String::NewFromUtf8(isolate, *file_name).ToLocalChecked(),
2386 oss << "Error executing file: \"" << *file_name << '"';
3408 std::string file_name = ToSTLString(isolate, name);
3410 if (!std::ifstream(file_name).good()) continue;
3412 sink << NormalizePath(file_name, GetWorkingDirectory()) << std::endl;
3918 Local<String> file_name =
3940 if (!Shell::ExecuteString(isolate, source, file_name, Shell::kNoPrintResult,
3952 Local<String> file_name = String::NewFromUtf8Literal(isolate, "unnamed");
3956 if (!Shell::ExecuteString(isolate, source, file_name,
4005 Local<String> file_name =
4014 if (!Shell::ExecuteString(isolate, source, file_name, Shell::kNoPrintResult,
4312 Local<String> file_name =
4317 isolate_, source, file_name, Shell::kNoPrintResult,