Permalink
Browse files

Debug opcode adjustments.

  • Loading branch information...
1 parent b3361ed commit bc086e98bfb975ca53ef0889b1b2fb3e249c2369 @whitequark committed Aug 19, 2012
@@ -3,7 +3,11 @@ class AS3DebugFile < Opcode
instruction 0xf1
body do
- vuint30 :index
+ const_ref :file, :string
+ end
+
+ def parameters
+ [ body.file ]
end
consume 0
@@ -3,7 +3,11 @@ class AS3DebugLine < Opcode
instruction 0xf0
body do
- vuint30 :linenum
+ vuint30 :line
+ end
+
+ def parameters
+ [ body.line ]
end
consume 0
@@ -6,6 +6,10 @@ class AS3PushString < PushLiteralOpcode
const_ref :value, :string
end
+ def parameters
+ [ body.line ]
+ end
+
type :string
end
end
@@ -81,8 +81,10 @@ def transform(code, body)
end
# Skip nops
- unless [ ABC::AS3Jump, ABC::AS3Label,
- ABC::AS3Kill, ABC::AS3Nop ].include? opcode.class
+ unless [ ABC::AS3Jump, ABC::AS3Label,
+ ABC::AS3Kill, ABC::AS3Nop,
+ ABC::AS3Debug, ABC::AS3DebugFile, ABC::AS3DebugLine
+ ].include? opcode.class
@pending_queue << opcode
end

0 comments on commit bc086e9

Please sign in to comment.