add http.cm and probe
This commit is contained in:
@@ -145,7 +145,7 @@ function load_pipeline_module(name, env) {
|
||||
hash = content_hash(source_blob)
|
||||
cached = pipeline_cache_path(hash)
|
||||
if (cached && fd.is_file(cached)) {
|
||||
log.system('engine: pipeline ' + name + ' (cached)')
|
||||
// log.system('engine: pipeline ' + name + ' (cached)')
|
||||
return mach_load(fd.slurp(cached), env)
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ function load_pipeline_module(name, env) {
|
||||
compiled = boot_sl(compiled)
|
||||
mcode_json = json.encode(compiled)
|
||||
mach_blob = mach_compile_mcode_bin(name, mcode_json)
|
||||
log.system('engine: pipeline ' + name + ' (compiled)')
|
||||
// log.system('engine: pipeline ' + name + ' (compiled)')
|
||||
if (!native_mode && cached) {
|
||||
ensure_build_dir()
|
||||
fd.slurpwrite(cached, mach_blob)
|
||||
@@ -676,13 +676,13 @@ function use_core(path) {
|
||||
if (!source_blob) source_blob = fd.slurp(file_path)
|
||||
cached_path = module_cache_path(source_blob, 'mach')
|
||||
if (cached_path && fd.is_file(cached_path)) {
|
||||
log.system('engine: cache hit for core/' + path)
|
||||
// log.system('engine: cache hit for core/' + path)
|
||||
result = mach_load(fd.slurp(cached_path), env)
|
||||
} else {
|
||||
script = text(source_blob)
|
||||
ast = analyze(script, file_path)
|
||||
mach_blob = compile_to_blob('core:' + path, ast)
|
||||
log.system('engine: compiled core/' + path)
|
||||
// log.system('engine: compiled core/' + path)
|
||||
if (!native_mode && cached_path) {
|
||||
ensure_build_dir()
|
||||
fd.slurpwrite(cached_path, mach_blob)
|
||||
|
||||
Reference in New Issue
Block a user