aboutsummaryrefslogtreecommitdiff
path: root/src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java')
-rw-r--r--src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java b/src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
index b7514526..172c1035 100644
--- a/src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
+++ b/src/jdk/nashorn/internal/codegen/ObjectClassGenerator.java
@@ -69,6 +69,16 @@ public final class ObjectClassGenerator {
static final String SCOPE_MARKER = "P";
/**
+ * Minimum number of extra fields in an object.
+ */
+ static final int FIELD_PADDING = 4;
+
+ /**
+ * Rounding when calculating the number of fields.
+ */
+ static final int FIELD_ROUNDING = 4;
+
+ /**
* Debug field logger
* Should we print debugging information for fields when they are generated and getters/setters are called?
*/