Add baseline compiler support.
This commit is contained in:
Родитель
176b0167c6
Коммит
4a6c0bec54
|
@ -13,12 +13,9 @@ source = WebKit
|
|||
[jsci]
|
||||
source = InterpKit
|
||||
|
||||
[tm]
|
||||
[mi]
|
||||
source = mozilla-inbound
|
||||
|
||||
[jm]
|
||||
source = mozilla-inbound
|
||||
|
||||
[im]
|
||||
source = mozilla-inbound
|
||||
[bc]
|
||||
source = ionmonkey
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ class Nitro(Engine):
|
|||
self.puller = 'svn'
|
||||
self.source = conf.get('jsc', 'source')
|
||||
self.args = None
|
||||
self.important = False
|
||||
self.important = False # WebKit changes too frequently, we'd need to detect JSC changes.
|
||||
self.modes = [
|
||||
{
|
||||
'mode': 'jsc',
|
||||
|
@ -113,22 +113,12 @@ class V8(Engine):
|
|||
return os.path.join('out', 'ia32.release', 'd8')
|
||||
|
||||
class Mozilla(Engine):
|
||||
def __init__(self, conf):
|
||||
def __init__(self, conf, source):
|
||||
super(Mozilla, self).__init__(conf)
|
||||
self.puller = 'hg'
|
||||
self.source = conf.get('jm', 'source')
|
||||
self.source = conf.get(source, 'source')
|
||||
self.args = None
|
||||
self.important = True
|
||||
self.modes = [
|
||||
{
|
||||
'mode': 'ti',
|
||||
'args': ['-m', '-n', '--no-ion']
|
||||
},
|
||||
{
|
||||
'mode': 'jmim',
|
||||
'args': ['--ion', '-m', '-n', '--ion-parallel-compile=on']
|
||||
}
|
||||
]
|
||||
|
||||
def env(self):
|
||||
env = os.environ.copy()
|
||||
|
@ -144,3 +134,26 @@ class Mozilla(Engine):
|
|||
def shell(self):
|
||||
return os.path.join('js', 'src', 'Opt', 'js')
|
||||
|
||||
class MozillaInbound(Mozilla):
|
||||
def __init__(self, conf):
|
||||
super(MozillaInbound, self).__init__(conf, 'mi')
|
||||
self.modes = [
|
||||
{
|
||||
'mode': 'ti',
|
||||
'args': ['-m', '-n', '--no-ion']
|
||||
},
|
||||
{
|
||||
'mode': 'jmim',
|
||||
'args': ['--ion', '-m', '-n', '--ion-parallel-compile=on']
|
||||
}
|
||||
]
|
||||
|
||||
class MozillaBaselineCompiler(Mozilla):
|
||||
def __init__(self, conf):
|
||||
super(MozillaBaselineCompiler, self).__init__(conf, 'bc')
|
||||
self.modes = [
|
||||
{
|
||||
'mode': 'bc',
|
||||
'args': ['--ion', '--no-jm', '-n', '--ion-parallel-compile=on']
|
||||
}
|
||||
]
|
||||
|
|
|
@ -17,7 +17,8 @@ resource.setrlimit(resource.RLIMIT_DATA, (-1, -1))
|
|||
# JSC is ilooping...
|
||||
KnownEngines = [
|
||||
builders.V8(config),
|
||||
builders.Mozilla(config),
|
||||
builders.MozillaInbound(config),
|
||||
builders.MozillaBaselineCompiler(config),
|
||||
builders.Nitro(config)
|
||||
]
|
||||
Engines = []
|
||||
|
|
Загрузка…
Ссылка в новой задаче