diff options
author | paltherr <paltherr@epfl.ch> | 2004-01-13 12:57:58 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-01-13 12:57:58 +0000 |
commit | fb144c8d45dd8bf54b1f6d26f87f391bd9f1c033 (patch) | |
tree | a94f14027805e9c9dbd30b958ad49df5aa30b740 | |
parent | ca3b44fb2dd0844e8e6f7df0e94ff936ea8bf8f0 (diff) | |
download | scala-fb144c8d45dd8bf54b1f6d26f87f391bd9f1c033.tar.gz scala-fb144c8d45dd8bf54b1f6d26f87f391bd9f1c033.tar.bz2 scala-fb144c8d45dd8bf54b1f6d26f87f391bd9f1c033.zip |
- Added primitive SYNCHRONIZED
-rw-r--r-- | sources/scalac/backend/Primitive.java | 2 | ||||
-rw-r--r-- | sources/scalac/backend/Primitives.java | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sources/scalac/backend/Primitive.java b/sources/scalac/backend/Primitive.java index 98278b3e8a..6f317c252e 100644 --- a/sources/scalac/backend/Primitive.java +++ b/sources/scalac/backend/Primitive.java @@ -172,6 +172,8 @@ public class Primitive { public case D2F; // RunTime.d2f(x) public case D2D; // RunTime.d2d(x) + public case SYNCHRONIZED; // RunTime.synchronised(x,y) + /** Return negated version of comparison primitive. */ public Primitive negate() { switch (this) { diff --git a/sources/scalac/backend/Primitives.java b/sources/scalac/backend/Primitives.java index a37bcea7c7..e54fe93a9f 100644 --- a/sources/scalac/backend/Primitives.java +++ b/sources/scalac/backend/Primitives.java @@ -167,6 +167,8 @@ public class Primitives { private static final Name D2F_N = Name.fromString("d2f"); private static final Name D2D_N = Name.fromString("d2d"); + private static final Name SYNCHRONIZED_N = Name.fromString("synchronised"); + //######################################################################## // Primitives state @@ -308,6 +310,8 @@ public class Primitives { public final Symbol D2F; public final Symbol D2D; + public final Symbol SYNCHRONIZED; + //######################################################################## // Primitives constructor @@ -439,6 +443,7 @@ public class Primitives { this.D2L = getUniqueTerm(RUNTIME, D2L_N); this.D2F = getUniqueTerm(RUNTIME, D2F_N); this.D2D = getUniqueTerm(RUNTIME, D2D_N); + this.SYNCHRONIZED = getUniqueTerm(RUNTIME, SYNCHRONIZED_N); initPrimitives(); } |