[pypy-commit] lang-js default: deleted commented code
stepahn
noreply at buildbot.pypy.org
Fri Dec 28 11:32:50 CET 2012
Author: Stephan <stephan at stzal.com>
Branch:
Changeset: r152:9c10b1f98037
Date: 2011-11-09 13:43 +0100
http://bitbucket.org/pypy/lang-js/changeset/9c10b1f98037/
Log: deleted commented code
diff --git a/js/opcodes.py b/js/opcodes.py
--- a/js/opcodes.py
+++ b/js/opcodes.py
@@ -95,9 +95,6 @@
def eval(self, ctx):
ctx.append(self.w_stringvalue)
- #def get_literal(self, ctx):
- # return W_String(self.strval).ToString(ctx)
-
def __repr__(self):
return 'LOAD_STRINGCONSTANT "%s"' % (self.w_stringvalue.strval,)
@@ -173,18 +170,6 @@
def __repr__(self):
return 'LOAD_FUNCTION' # XXX
-# class STORE_VAR(Opcode):
-# def __init__(self, depth, name):
-# self.name = name
-# self.depth = depth
-
-# def eval(self, ctx, stack):
-# value = stack[-1]
-# ctx.scope[self.depth].Put(ctx, self.name, value)
-
-# def __repr__(self):
-# return 'STORE_VAR "%s"' % self.name
-
class LOAD_OBJECT(Opcode):
_immutable_fields_ = ["counter"]
def __init__(self, counter):
diff --git a/js/operations.py b/js/operations.py
--- a/js/operations.py
+++ b/js/operations.py
@@ -549,9 +549,6 @@
what.left.emit(bytecode)
bytecode.emit('LOAD_BOOLCONSTANT', True)
- #def emit(self, bytecode):
- #
-
#class Index(BinaryOp):
# def eval(self, ctx):
# w_obj = self.left.eval(ctx).GetValue().ToObject(ctx)
More information about the pypy-commit
mailing list