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

Unified Diff: test/mjsunit/load-callback-from-value-classic.js

Issue 62953007: Handle all object types (minus smi) in load/store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to ARM Created 7 years, 1 month 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
« src/stub-cache.cc ('K') | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/load-callback-from-value-classic.js
diff --git a/test/mjsunit/compiler/minus-zero.js b/test/mjsunit/load-callback-from-value-classic.js
similarity index 84%
copy from test/mjsunit/compiler/minus-zero.js
copy to test/mjsunit/load-callback-from-value-classic.js
index 6efceb54e36834c217732a7974f0c5d2a2cca132..0030c61cf86d8ac0566dff935bd5ac7d34b175a0 100644
--- a/test/mjsunit/compiler/minus-zero.js
+++ b/test/mjsunit/load-callback-from-value-classic.js
@@ -25,13 +25,14 @@
// (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
+Object.defineProperty(Boolean.prototype, "v",
+ {get:function() { return this; }});
-function add(x, y) {
- return x + y;
+function f(b) {
+ return b.v;
}
-assertEquals(0, add(0, 0));
-assertEquals(0, add(0, 0));
-%OptimizeFunctionOnNextCall(add);
-assertEquals(-0, add(-0, -0));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
« src/stub-cache.cc ('K') | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698