Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IAssemblerWriter.cs « Mono.CSharp.Debugger « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 169b9fc073e562cc831067a6ea73dff5905decfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// Mono.CSharp.Debugger/IAssemblerWriter.cs
//
// Author:
//   Martin Baulig (martin@gnome.org)
//
// This is a platform and assembler independent assembler output interface.
//
// (C) 2002 Ximian, Inc.  http://www.ximian.com
//

using System;
using System.Collections;
using System.IO;
	
namespace Mono.CSharp.Debugger
{
	public interface IAssemblerWriter
	{
		int GetNextLabelIndex ();

		void WriteLabel (int index);

		void WriteLabel (string label);

		int WriteLabel ();

		void WriteUInt8 (bool value);

		void WriteUInt8 (int value);

		void WriteInt8 (int value);

		void Write2Bytes (int a, int b);

		void WriteUInt16 (int value);

		void WriteInt16 (int value);

		void WriteUInt32 (int value);

		void WriteInt32 (int value);

		void WriteSLeb128 (int value);

		void WriteULeb128 (int value);

		void WriteAddress (int value);

		void WriteString (string value);

		void WriteSectionStart (String section);

		void WriteSectionEnd ();

		void WriteRelativeOffset (int start_label, int end_label);

		void WriteShortRelativeOffset (int start_label, int end_label);

		void WriteAbsoluteOffset (int index);

		void WriteAbsoluteOffset (string label);

		object StartSubsectionWithSize ();

		object StartSubsectionWithShortSize ();

		void EndSubsection (object end_index);
	}
}