Beispiel #1
0
 def __init__(self):
   WrapperGen.__init__(self,
                       'Pnacl',
                       'Pnacl Shim Gen',
                       'pnacl',
                       'Generate the PNaCl shim.')
   self.cgen = CGen()
   self._skip_opt = False
Beispiel #2
0
 def __init__(self):
   WrapperGen.__init__(self,
                       'Pnacl',
                       'Pnacl Shim Gen',
                       'pnacl',
                       'Generate the PNaCl shim.')
   self.cgen = CGen()
   self._skip_opt = False
   self._pnacl_attribute = '__attribute__((pnaclcall))'
Beispiel #3
0
 def GenerateRange(self, ast, releases, options):
     """Generate entry point code for a range of releases.
 """
     self._skip_opt = GetOption('disable_pepper_opt')
     self._skip_region_gen = GetOption('disable_region_gen')
     self.SetOutputFile(GetOption('pepperfile'))
     return WrapperGen.GenerateRange(self, ast, releases, options)
Beispiel #4
0
 def GenerateRange(self, ast, releases, options):
     """Generate shim code for a range of releases.
 """
     self._skip_opt = GetOption('disable_pnacl_opt')
     self.SetOutputFile(GetOption('pnaclshim'))
     return WrapperGen.GenerateRange(self, ast, releases, options)
Beispiel #5
0
 def __init__(self):
     WrapperGen.__init__(self, 'Pepper', 'Pepper Gen', 'pepper',
                         'Generate the Pepper DLL export.')
     self.cgen = CGen()
     self._skip_opt = False
     self._skip_region_gen = False