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

Side by Side Diff: test/cctest/test-unboxed-doubles.cc

Issue 2639583002: [runtime] Remove redundant StoreMode enum. (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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-field-type-tracking.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <utility> 6 #include <utility>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 INSERT_TRANSITION).ToHandleChecked(); 1527 INSERT_TRANSITION).ToHandleChecked();
1528 map = Map::CopyWithField(map, MakeName("prop", 1), any_type, NONE, 1528 map = Map::CopyWithField(map, MakeName("prop", 1), any_type, NONE,
1529 Representation::Double(), 1529 Representation::Double(),
1530 INSERT_TRANSITION).ToHandleChecked(); 1530 INSERT_TRANSITION).ToHandleChecked();
1531 map = Map::CopyWithField(map, MakeName("prop", 2), any_type, NONE, 1531 map = Map::CopyWithField(map, MakeName("prop", 2), any_type, NONE,
1532 Representation::Tagged(), 1532 Representation::Tagged(),
1533 INSERT_TRANSITION).ToHandleChecked(); 1533 INSERT_TRANSITION).ToHandleChecked();
1534 1534
1535 // Shift fields right by turning constant property to a field. 1535 // Shift fields right by turning constant property to a field.
1536 Handle<Map> new_map = Map::ReconfigureProperty( 1536 Handle<Map> new_map = Map::ReconfigureProperty(
1537 map, 0, kData, NONE, Representation::Tagged(), any_type, FORCE_FIELD); 1537 map, 0, kData, NONE, Representation::Tagged(), any_type);
1538 1538
1539 if (write_barrier_kind == OLD_TO_NEW_WRITE_BARRIER) { 1539 if (write_barrier_kind == OLD_TO_NEW_WRITE_BARRIER) {
1540 TestWriteBarrier(map, new_map, 2, 1); 1540 TestWriteBarrier(map, new_map, 2, 1);
1541 } else { 1541 } else {
1542 CHECK_EQ(OLD_TO_OLD_WRITE_BARRIER, write_barrier_kind); 1542 CHECK_EQ(OLD_TO_OLD_WRITE_BARRIER, write_barrier_kind);
1543 TestIncrementalWriteBarrier(map, new_map, 2, 1); 1543 TestIncrementalWriteBarrier(map, new_map, 2, 1);
1544 } 1544 }
1545 } 1545 }
1546 1546
1547 TEST(WriteBarrierObjectShiftFieldsRight) { 1547 TEST(WriteBarrierObjectShiftFieldsRight) {
1548 TestWriteBarrierObjectShiftFieldsRight(OLD_TO_NEW_WRITE_BARRIER); 1548 TestWriteBarrierObjectShiftFieldsRight(OLD_TO_NEW_WRITE_BARRIER);
1549 } 1549 }
1550 1550
1551 1551
1552 TEST(IncrementalWriteBarrierObjectShiftFieldsRight) { 1552 TEST(IncrementalWriteBarrierObjectShiftFieldsRight) {
1553 TestWriteBarrierObjectShiftFieldsRight(OLD_TO_OLD_WRITE_BARRIER); 1553 TestWriteBarrierObjectShiftFieldsRight(OLD_TO_OLD_WRITE_BARRIER);
1554 } 1554 }
1555 1555
1556 1556
1557 // TODO(ishell): add respective tests for property kind reconfiguring from 1557 // TODO(ishell): add respective tests for property kind reconfiguring from
1558 // accessor field to double, once accessor fields are supported by 1558 // accessor field to double, once accessor fields are supported by
1559 // Map::ReconfigureProperty(). 1559 // Map::ReconfigureProperty().
1560 1560
1561 1561
1562 // TODO(ishell): add respective tests for fast property removal case once 1562 // TODO(ishell): add respective tests for fast property removal case once
1563 // Map::ReconfigureProperty() supports that. 1563 // Map::ReconfigureProperty() supports that.
1564 1564
1565 #endif 1565 #endif
OLDNEW
« no previous file with comments | « test/cctest/test-field-type-tracking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698