Author: Anton Gulenko <[email protected]>
Branch: storage
Changeset: r692:8754efd5dc1d
Date: 2014-03-24 11:06 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/8754efd5dc1d/

Log:    Removed the only_list_storage flag.

diff --git a/spyvm/strategies.py b/spyvm/strategies.py
--- a/spyvm/strategies.py
+++ b/spyvm/strategies.py
@@ -7,9 +7,6 @@
 from rpython.rlib.objectmodel import import_from_mixin
 from rpython.rlib.rfloat import string_to_float
 
-# Disables all optimized strategies, for debugging.
-only_list_storage = False
-
 class AbstractStorageStrategy(object):
     _immutable_fields_ = []
     _attrs_ = []
@@ -207,9 +204,6 @@
         return space.unwrap_float(w_val)
 
 def find_strategy_for_objects(space, vars):
-    if only_list_storage:
-        ListStorageStrategy.singleton
-    
     specialized_strategies = 3
     all_nil_can_handle = True
     small_int_can_handle = True
@@ -242,7 +236,7 @@
     if s_containing_class is None:
         # This is a weird and rare special case for w_nil
         return ListStorageStrategy.singleton
-    if not s_containing_class.isvariable() or only_list_storage:
+    if not s_containing_class.isvariable():
         return ListStorageStrategy.singleton
     
     # A newly allocated object contains only nils.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to