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

Side by Side Diff: test/mjsunit/allocation-site-info.js

Issue 1845463003: Remove usages of Heap::NewSpaceStart and its external reference (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Only use 1 constant, reordered checks a bit to have earlier bail outs for old space Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/x87/macro-assembler-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 assertKind(elements_kind.fast_smi_only, obj[1][0]); 467 assertKind(elements_kind.fast_smi_only, obj[1][0]);
468 obj[0][0] = 3.5; 468 obj[0][0] = 3.5;
469 obj[1][0][0] = "goodbye"; 469 obj[1][0][0] = "goodbye";
470 assertKind(elements_kind.fast_double, obj[0]); 470 assertKind(elements_kind.fast_double, obj[0]);
471 assertKind(elements_kind.fast, obj[1][0]); 471 assertKind(elements_kind.fast, obj[1][0]);
472 472
473 obj = get_deep_nested_literal(); 473 obj = get_deep_nested_literal();
474 assertKind(elements_kind.fast_double, obj[0]); 474 assertKind(elements_kind.fast_double, obj[0]);
475 assertKind(elements_kind.fast, obj[1][0]); 475 assertKind(elements_kind.fast, obj[1][0]);
476 })(); 476 })();
477
478 // Test gathering allocation site feedback for generic ics.
479 (function() {
480 function make() { return new Array(); }
481 function foo(a, i) { a[0] = i; }
482
483 var a = make();
484 assertKind(elements_kind.fast_smi_only, a);
485
486 // Make the keyed store ic go generic.
487 foo("howdy", 1);
488 foo(a, 3.5);
489
490 var b = make();
491 assertKind(elements_kind.fast_double, b);
492 })();
OLDNEW
« no previous file with comments | « src/x87/macro-assembler-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698