summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2009-08-14 14:02:26 +0000
committerAndrew Haley <aph@redhat.com>2009-08-14 14:02:26 +0000
commitb2621cf8221ab84a7ea6121bb6f34d83df7e87e6 (patch)
tree393f957e5ca58c992034729fbd3992d383440c33
parent2229457f8b632b6046c47c1cd6919dd2a32e730f (diff)
downloadclasspath-b2621cf8221ab84a7ea6121bb6f34d83df7e87e6.tar.gz
2009-08-14 Jakub Jelinek <jakub@redhat.com>
* gnu/javax/swing/text/html/parser/HTML_401F.java (defineElements): Split this huge method into... (defineElements1, defineElements2, defineElements3, defineElements4, defineElements5, defineElements6): ... these smaller methods.
-rw-r--r--gnu/javax/swing/text/html/parser/HTML_401F.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/gnu/javax/swing/text/html/parser/HTML_401F.java b/gnu/javax/swing/text/html/parser/HTML_401F.java
index 1894b6a1a..5555412d0 100644
--- a/gnu/javax/swing/text/html/parser/HTML_401F.java
+++ b/gnu/javax/swing/text/html/parser/HTML_401F.java
@@ -379,6 +379,24 @@ public class HTML_401F
*/
protected void defineElements()
{
+ /* Define the elements. This used to be one huge method, which
+ unfortunately took too long to compile and consumed
+ too much memory while compiling it. While it can serve as
+ a good stress test for gcj, it is better to split it up
+ to save time and memory used during GCC bootstrap. */
+ defineElements1();
+ defineElements2();
+ defineElements3();
+ defineElements4();
+ defineElements5();
+ defineElements6();
+ }
+
+ /**
+ * Define first sixth of elements of this DTD.
+ */
+ private void defineElements1()
+ {
/* Define the elements. */
defElement(PCDATA, 0, false, false, null, NONE, NONE,
new AttributeList[ 0 ]);
@@ -885,6 +903,15 @@ public class HTML_401F
0, IMPLIED)
}
);
+
+ }
+
+ /**
+ * Define second sixth of elements of this DTD.
+ */
+ private void defineElements2()
+ {
+ /* Define the elements. */
defElement(CENTER, 0, false, false, null,
NONE
,
@@ -1373,6 +1400,15 @@ public class HTML_401F
attr(ONKEYUP, null, null, 0, IMPLIED)
}
);
+
+ }
+
+ /**
+ * Define third sixth of elements of this DTD.
+ */
+ private void defineElements3()
+ {
+ /* Define the elements. */
defElement(FONT, 0, false, false, null,
NONE
,
@@ -1861,6 +1897,15 @@ public class HTML_401F
attr(VSPACE, null, null, 0, IMPLIED)
}
);
+
+ }
+
+ /**
+ * Define fourth sixth of elements of this DTD.
+ */
+ private void defineElements4()
+ {
+ /* Define the elements. */
defElement(INPUT, EMPTY, false, true, null,
NONE
,
@@ -2357,6 +2402,15 @@ public class HTML_401F
attr(VSPACE, null, null, 0, IMPLIED)
}
);
+
+ }
+
+ /**
+ * Define fifth sixth of elements of this DTD.
+ */
+ private void defineElements5()
+ {
+ /* Define the elements. */
defElement(OL, 0, false, false, createListModel(),
NONE
,
@@ -2859,6 +2913,15 @@ public class HTML_401F
attr(ONKEYUP, null, null, 0, IMPLIED)
}
);
+
+ }
+
+ /**
+ * Define last sixth of elements of this DTD.
+ */
+ private void defineElements6()
+ {
+ /* Define the elements. */
defElement(SUP, 0, false, false, null,
NONE
,