nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compile: cnames for classes and modules
[nit.git]
/
src
/
compiling
/
compiling_icode.nit
diff --git
a/src/compiling/compiling_icode.nit
b/src/compiling/compiling_icode.nit
index
00e87c4
..
a805219
100644
(file)
--- a/
src/compiling/compiling_icode.nit
+++ b/
src/compiling/compiling_icode.nit
@@
-289,7
+289,7
@@
redef class IRoutine
v.add_decl("struct \{struct stack_frame_t me;\} fra;")
end
v.add_instr("fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;")
v.add_decl("struct \{struct stack_frame_t me;\} fra;")
end
v.add_instr("fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;")
- v.add_instr("fra.me.file = LOCATE_{v.visitor.mmmodule.name};")
+ v.add_instr("fra.me.file = LOCATE_{v.visitor.mmmodule.cname};")
v.add_instr("fra.me.line = {ll};")
v.add_instr("fra.me.meth = LOCATE_{v.basecname};")
v.add_instr("fra.me.has_broke = 0;")
v.add_instr("fra.me.line = {ll};")
v.add_instr("fra.me.meth = LOCATE_{v.basecname};")
v.add_instr("fra.me.has_broke = 0;")
@@
-624,7
+624,7
@@
redef class IAllocateInstance
v.add_location(location)
var w = new_result(v)
w.add("NEW_")
v.add_location(location)
var w = new_result(v)
w.add("NEW_")
- w.add(stype.local_class.name.to_s)
+ w.add(stype.local_class.cname)
w.add("()")
end
end
w.add("()")
end
end
@@
-635,7
+635,7
@@
redef class ICheckInstance
v.add_location(location)
var w = new_result(v)
w.add("CHECKNEW_")
v.add_location(location)
var w = new_result(v)
w.add("CHECKNEW_")
- w.add(stype.local_class.name.to_s)
+ w.add(stype.local_class.cname)
w.add("(")
w.add(v.register(expr))
w.add(")")
w.add("(")
w.add(v.register(expr))
w.add(")")
@@
-648,7
+648,7
@@
redef class IInitAttributes
v.add_location(location)
var w = v.new_instr
w.add("INIT_ATTRIBUTES__")
v.add_location(location)
var w = v.new_instr
w.add("INIT_ATTRIBUTES__")
- w.add(stype.local_class.name.to_s)
+ w.add(stype.local_class.cname)
w.add("(")
w.add(v.register(expr))
w.add(");\n")
w.add("(")
w.add(v.register(expr))
w.add(");\n")
@@
-943,7
+943,7
@@
redef class IAbort
w.add("\", NULL")
end
w.add(", LOCATE_")
w.add("\", NULL")
end
w.add(", LOCATE_")
- w.add(module_location.name.to_s)
+ w.add(module_location.cname)
var ll = location
if ll != null then
w.add(", ")
var ll = location
if ll != null then
w.add(", ")