parameters: (d8)
return_statement: return 'ia32' if arch == 'x86' else arch
docstring: Infer the V8 architecture from the build configuration next to the
    executable.
docstring_summary: Infer the V8 architecture from the build configuration next to the
    executable.
docstring_tokens: Infer the V8 architecture from the build configuration next to the executable .
function: def infer_arch(d8):
    """Infer the V8 architecture from the build configuration next to the
    executable.
    """
    with open(os.path.join(os.path.dirname(d8), 'v8_build_config.json')) as f:
      arch = json.load(f)['v8_current_cpu']
    return 'ia32' if arch == 'x86' else arch
function_tokens: def infer_arch ( d8 ) : with open ( os . path . join ( os . path . dirname ( d8 ) , 'v8_build_config.json' ) ) as f : arch = json . load ( f ) [ 'v8_current_cpu' ] return 'ia32' if arch == 'x86' else arch