summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/backend/Platform.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-23 06:57:53 +0000
committerPaul Phillips <paulp@improving.org>2010-02-23 06:57:53 +0000
commit7cfbc47200119bb0d30f0d24d362f83d2cd2bd01 (patch)
tree87952646c0732be785fc0ddf76860c584ee2cb74 /src/compiler/scala/tools/nsc/backend/Platform.scala
parent1558069de5a2af1163857ae06d7334f5cae537f7 (diff)
downloadscala-7cfbc47200119bb0d30f0d24d362f83d2cd2bd01.tar.gz
scala-7cfbc47200119bb0d30f0d24d362f83d2cd2bd01.tar.bz2
scala-7cfbc47200119bb0d30f0d24d362f83d2cd2bd01.zip
Abstracting out a few more platform specific el...
Abstracting out a few more platform specific elements now that we have a facility for doing so. Review by rytz.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/Platform.scala')
-rw-r--r--src/compiler/scala/tools/nsc/backend/Platform.scala19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/Platform.scala b/src/compiler/scala/tools/nsc/backend/Platform.scala
index 3ab0e4e8a7..90075687c6 100644
--- a/src/compiler/scala/tools/nsc/backend/Platform.scala
+++ b/src/compiler/scala/tools/nsc/backend/Platform.scala
@@ -6,19 +6,26 @@
package scala.tools.nsc
package backend
-import util.{ ClassPath }
+import util.ClassPath
/** The platform dependent pieces of Global.
*/
-
trait Platform[T] {
val global: Global
import global._
- // Unless inlining is on, we can exclude $class.class files from the classpath.
- protected def isInlinerOn = settings.inline.value
-
+ /** The compiler classpath. */
def classPath: ClassPath[T]
- def rootLoader: global.LazyType
+
+ /** The root symbol loader. */
+ def rootLoader: LazyType
+
+ /** Any platform-specific phases. */
def platformPhases: List[SubComponent]
+
+ /** Symbol for a method which compares two objects. */
+ def externalEquals: Symbol
+
+ /** The various ways a boxed primitive might materialize at runtime. */
+ def isMaybeBoxed(sym: Symbol): Boolean
}