Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: test/mjsunit/fast-literal.js

Issue 23030002: Simplified BuildFastLiteral by eliminating manual allocation folding. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/fast-literal.js
diff --git a/test/mjsunit/regress/regress-1898.js b/test/mjsunit/fast-literal.js
similarity index 87%
copy from test/mjsunit/regress/regress-1898.js
copy to test/mjsunit/fast-literal.js
index 5440446fbf78ca593e8748cd54ea2aefad047542..822d90656b05948c495ca5e404f5b480fbf6bb7e 100644
--- a/test/mjsunit/regress/regress-1898.js
+++ b/test/mjsunit/fast-literal.js
@@ -25,13 +25,18 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --no-inline-new --nouse-allocation-folding
-function f(x) {
- Math.log(Math.min(0.1, Math.abs(x)));
+%SetAllocationTimeout(10, 0);
+function f() {
+ return [[1, 2, 3], [1.1, 1.2, 1.3], [[], [], []]];
}
-f(0.1);
-f(0.1);
+f(); f(); f();
%OptimizeFunctionOnNextCall(f);
-f(0.1);
+for (var i=0; i<1000; i++) {
+ f();
+}
+
+
+
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698