diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs index d5b08f0..24d7c3d 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/MMRScriptObjCode.cs | |||
@@ -87,9 +87,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
87 | */ | 87 | */ |
88 | public ScriptObjCode(BinaryReader objFileReader, TextWriter asmFileWriter, TextWriter srcFileWriter) | 88 | public ScriptObjCode(BinaryReader objFileReader, TextWriter asmFileWriter, TextWriter srcFileWriter) |
89 | { | 89 | { |
90 | /* | 90 | // Check version number to make sure we know how to process file contents. |
91 | * Check version number to make sure we know how to process file contents. | ||
92 | */ | ||
93 | char[] ocm = objFileReader.ReadChars(ScriptCodeGen.OBJECT_CODE_MAGIC.Length); | 91 | char[] ocm = objFileReader.ReadChars(ScriptCodeGen.OBJECT_CODE_MAGIC.Length); |
94 | if(new String(ocm) != ScriptCodeGen.OBJECT_CODE_MAGIC) | 92 | if(new String(ocm) != ScriptCodeGen.OBJECT_CODE_MAGIC) |
95 | throw new Exception("not an XMR object file (bad magic)"); | 93 | throw new Exception("not an XMR object file (bad magic)"); |
@@ -206,14 +204,10 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
206 | */ | 204 | */ |
207 | public void EndMethod(DynamicMethod method, Dictionary<int, ScriptSrcLoc> srcLocs) | 205 | public void EndMethod(DynamicMethod method, Dictionary<int, ScriptSrcLoc> srcLocs) |
208 | { | 206 | { |
209 | /* | 207 | // Save method object code pointer. |
210 | * Save method object code pointer. | ||
211 | */ | ||
212 | dynamicMethods.Add(method.Name, method); | 208 | dynamicMethods.Add(method.Name, method); |
213 | 209 | ||
214 | /* | 210 | // Build and sort iloffset -> source code location array. |
215 | * Build and sort iloffset -> source code location array. | ||
216 | */ | ||
217 | int n = srcLocs.Count; | 211 | int n = srcLocs.Count; |
218 | KeyValuePair<int, ScriptSrcLoc>[] srcLocArray = new KeyValuePair<int, ScriptSrcLoc>[n]; | 212 | KeyValuePair<int, ScriptSrcLoc>[] srcLocArray = new KeyValuePair<int, ScriptSrcLoc>[n]; |
219 | n = 0; | 213 | n = 0; |
@@ -221,9 +215,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
221 | srcLocArray[n++] = kvp; | 215 | srcLocArray[n++] = kvp; |
222 | Array.Sort(srcLocArray, endMethodWrapper); | 216 | Array.Sort(srcLocArray, endMethodWrapper); |
223 | 217 | ||
224 | /* | 218 | // Save sorted array. |
225 | * Save sorted array. | ||
226 | */ | ||
227 | scriptSrcLocss.Add(method.Name, srcLocArray); | 219 | scriptSrcLocss.Add(method.Name, srcLocArray); |
228 | } | 220 | } |
229 | 221 | ||