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

Unified Diff: test/mjsunit/smi-representation.js

Issue 2598543003: [runtime][ic] Constant field tracking support. (Closed)
Patch Set: Created 3 years, 11 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
Index: test/mjsunit/smi-representation.js
diff --git a/test/mjsunit/smi-representation.js b/test/mjsunit/smi-representation.js
index 882b5b91f0d5ebb1f57f8cf58955591dd975b63c..10545c76806475413a10c30255d2870204ee5177 100644
--- a/test/mjsunit/smi-representation.js
+++ b/test/mjsunit/smi-representation.js
@@ -28,7 +28,11 @@
// Flags: --track-fields --track-double-fields --allow-natives-syntax
function smi_field() {
- return {"smi":0};
+ // Assign twice to make the field non-constant.
+ // TODO(ishell): update test once constant field tracking is done.
+ var o = {smi: 1};
+ o.smi = 0;
+ return o;
}
function check_smi_repr(o, d1, d2) {

Powered by Google App Engine
This is Rietveld 408576698