MCPcopy Index your code
hub / github.com/nodejs/node / RunGNIsolate

Method RunGNIsolate

deps/v8/tools/mb/mb.py:769–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

767 return 0
768
769 def RunGNIsolate(self):
770 target = self.args.target[0]
771 isolate_map = self.ReadIsolateMap()
772 err, labels = self.MapTargetsToLabels(isolate_map, [target])
773 if err:
774 raise MBErr(err)
775 label = labels[0]
776
777 build_dir = self.args.path[0]
778
779 cmd = self.GNCmd('desc', build_dir, label, 'runtime_deps')
780 ret, out, _ = self.Call(cmd)
781 if ret:
782 if out:
783 self.Print(out)
784 return ret
785
786 runtime_deps = out.splitlines()
787
788 self.WriteIsolateFiles(build_dir, target, runtime_deps)
789
790 ret, _, _ = self.Run([
791 self.PathJoin(self.chromium_src_dir, 'tools', 'luci-go',
792 self.isolate_exe),
793 'check',
794 '-i',
795 self.ToSrcRelPath('%s/%s.isolate' % (build_dir, target))],
796 buffer_output=False)
797
798 return ret
799
800 def RemovePossiblyStaleRuntimeDepsFiles(self, vals, targets, isolate_map,
801 build_dir):

Callers 2

CmdIsolateMethod · 0.95
CmdRunMethod · 0.95

Calls 11

ReadIsolateMapMethod · 0.95
MapTargetsToLabelsMethod · 0.95
GNCmdMethod · 0.95
CallMethod · 0.95
PrintMethod · 0.95
WriteIsolateFilesMethod · 0.95
RunMethod · 0.95
PathJoinMethod · 0.95
ToSrcRelPathMethod · 0.95
MBErrClass · 0.85
splitlinesMethod · 0.45

Tested by

no test coverage detected