Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r53227:7bc211a6a70e
Date: 2012-03-05 04:31 -0800
http://bitbucket.org/pypy/pypy/changeset/7bc211a6a70e/
Log: use more appropriate name of cpu class
diff --git a/pypy/jit/backend/ppc/runner.py b/pypy/jit/backend/ppc/runner.py
--- a/pypy/jit/backend/ppc/runner.py
+++ b/pypy/jit/backend/ppc/runner.py
@@ -12,7 +12,7 @@
log = py.log.Producer('jitbackend')
py.log.setconsumer('jitbackend', ansi_log)
-class PPC_64_CPU(AbstractLLCPU):
+class PPC_CPU(AbstractLLCPU):
BOOTSTRAP_TP = lltype.FuncType([], lltype.Signed)
@@ -80,7 +80,7 @@
@staticmethod
def cast_ptr_to_int(x):
adr = llmemory.cast_ptr_to_adr(x)
- return PPC_64_CPU.cast_adr_to_int(adr)
+ return PPC_CPU.cast_adr_to_int(adr)
# XXX find out how big FP registers are on PPC32
all_null_registers = lltype.malloc(rffi.LONGP.TO,
diff --git a/pypy/jit/backend/ppc/test/test_call_assembler.py
b/pypy/jit/backend/ppc/test/test_call_assembler.py
--- a/pypy/jit/backend/ppc/test/test_call_assembler.py
+++ b/pypy/jit/backend/ppc/test/test_call_assembler.py
@@ -13,7 +13,7 @@
from pypy.jit.backend.llsupport.gc import GcLLDescr_framework, GcPtrFieldDescr
from pypy.jit.codewriter.effectinfo import EffectInfo
-from pypy.jit.backend.ppc.runner import PPC_64_CPU
+from pypy.jit.backend.ppc.runner import PPC_CPU
from pypy.jit.backend.ppc.test.test_runner import FakeStats
class TestAssembler(object):
@@ -21,7 +21,7 @@
type_system = 'lltype'
def setup_class(cls):
- cls.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats())
+ cls.cpu = PPC_CPU(rtyper=None, stats=FakeStats())
cls.cpu.setup_once()
def interpret_direct_entry_point(self, ops, args, namespace):
diff --git a/pypy/jit/backend/ppc/test/test_runner.py
b/pypy/jit/backend/ppc/test/test_runner.py
--- a/pypy/jit/backend/ppc/test/test_runner.py
+++ b/pypy/jit/backend/ppc/test/test_runner.py
@@ -1,5 +1,5 @@
from pypy.jit.backend.test.runner_test import LLtypeBackendTest
-from pypy.jit.backend.ppc.runner import PPC_64_CPU
+from pypy.jit.backend.ppc.runner import PPC_CPU
from pypy.jit.tool.oparser import parse
from pypy.jit.metainterp.history import (AbstractFailDescr,
AbstractDescr,
@@ -20,7 +20,7 @@
class TestPPC(LLtypeBackendTest):
def setup_method(self, meth):
- self.cpu = PPC_64_CPU(rtyper=None, stats=FakeStats())
+ self.cpu = PPC_CPU(rtyper=None, stats=FakeStats())
self.cpu.setup_once()
def test_compile_loop_many_int_args(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit