Skip to content

Instantly share code, notes, and snippets.

@mnem
Created February 4, 2010 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnem/295053 to your computer and use it in GitHub Desktop.
Save mnem/295053 to your computer and use it in GitHub Desktop.
public function newMrNoisy() :void
{
returnMrNoisy(new MrNoisy()).thing += 50;
}
// ABC Output for newMrNoisy
// function :CompoundOperatorsAndNew:::newMrNoisy()::void
// maxStack:3 localCount:1 initScopeDepth:9 maxScopeDepth:10
// getlocal0
// pushscope
// getlocal0
// findpropstrict :MrNoisy
// constructprop :MrNoisy (0)
// callproperty :returnMrNoisy (1)
// getlocal0
// findpropstrict :MrNoisy
// constructprop :MrNoisy (0)
// callproperty :returnMrNoisy (1)
// getproperty :thing
// pushbyte 50
// add
// setproperty :thing
// returnvoid
// 0 Extras
// 0 Traits Entries
///////////////////////////////////////////////////////////////////
public function newMrNoisyWithLocalStorage() :void
{
var m :MrNoisy;
returnMrNoisy(m = new MrNoisy()).thing += 50;
}
// ABC Output for newMrNoisyWithLocalStorage
// function :CompoundOperatorsAndNew:::newMrNoisyWithLocalStorage()::void
// maxStack:4 localCount:3 initScopeDepth:9 maxScopeDepth:10
// getlocal0
// pushscope
// pushnull
// coerce :MrNoisy
// setlocal1
// getlocal0
// findpropstrict :MrNoisy
// constructprop :MrNoisy (0)
// dup
// setlocal2
// coerce :MrNoisy
// setlocal1
// getlocal2
// kill 2
// callproperty :returnMrNoisy (1)
// getlocal0
// findpropstrict :MrNoisy
// constructprop :MrNoisy (0)
// dup
// setlocal2
// coerce :MrNoisy
// setlocal1
// getlocal2
// kill 2
// callproperty :returnMrNoisy (1)
// getproperty :thing
// pushbyte 50
// add
// setproperty :thing
// returnvoid
// 0 Extras
// 0 Traits Entries
///////////////////////////////////////////////////////////////////
public function returnMrNoisy(o :MrNoisy) :MrNoisy
{
return o;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment