mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
x64, v2 backends
This commit is contained in:
@ -12,7 +12,7 @@ fn (p mut Parser) for_st() {
|
||||
}
|
||||
// debug := p.scanner.file_path.contains('r_draw')
|
||||
p.open_scope()
|
||||
mut label := 0
|
||||
//mut label := 0
|
||||
mut to := 0
|
||||
if p.tok == .lcbr {
|
||||
// Infinite loop
|
||||
@ -148,7 +148,7 @@ fn (p mut Parser) for_st() {
|
||||
p.check_types(range_typ, 'int')
|
||||
range_end = range_expr
|
||||
if p.pref.x64 {
|
||||
label = p.x64.gen_loop_start(expr.int())
|
||||
//label = p.x64.gen_loop_start(expr.int())
|
||||
// to = range_expr.int() // TODO why empty?
|
||||
}
|
||||
}
|
||||
@ -218,8 +218,8 @@ fn (p mut Parser) for_st() {
|
||||
p.close_scope()
|
||||
p.for_expr_cnt--
|
||||
p.returns = false // TODO handle loops that are guaranteed to return
|
||||
if label > 0 {
|
||||
p.x64.gen_loop_end(to, label)
|
||||
}
|
||||
//if label > 0 {
|
||||
//p.x64.gen_loop_end(to, label)
|
||||
//}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user