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

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

Issue 1938993002: [turbofan] Restore basic write barrier elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments. Created 4 years, 7 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/compiler/test-simplified-lowering.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 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 CHECK(!MarkCompactCollector::IsOnEvacuationCandidate(*obj_value)); 1497 CHECK(!MarkCompactCollector::IsOnEvacuationCandidate(*obj_value));
1498 1498
1499 if (check_tagged_value) { 1499 if (check_tagged_value) {
1500 FieldIndex tagged_field_index = 1500 FieldIndex tagged_field_index =
1501 FieldIndex::ForDescriptor(*new_map, tagged_descriptor); 1501 FieldIndex::ForDescriptor(*new_map, tagged_descriptor);
1502 CHECK_EQ(*obj_value, obj->RawFastPropertyAt(tagged_field_index)); 1502 CHECK_EQ(*obj_value, obj->RawFastPropertyAt(tagged_field_index));
1503 } 1503 }
1504 CHECK_EQ(boom_value, obj->RawFastDoublePropertyAt(double_field_index)); 1504 CHECK_EQ(boom_value, obj->RawFastDoublePropertyAt(double_field_index));
1505 } 1505 }
1506 1506
1507 1507 enum OldToWriteBarrierKind {
1508 enum WriteBarrierKind { OLD_TO_OLD_WRITE_BARRIER, OLD_TO_NEW_WRITE_BARRIER }; 1508 OLD_TO_OLD_WRITE_BARRIER,
1509 OLD_TO_NEW_WRITE_BARRIER
1510 };
1509 static void TestWriteBarrierObjectShiftFieldsRight( 1511 static void TestWriteBarrierObjectShiftFieldsRight(
1510 WriteBarrierKind write_barrier_kind) { 1512 OldToWriteBarrierKind write_barrier_kind) {
1511 CcTest::InitializeVM(); 1513 CcTest::InitializeVM();
1512 Isolate* isolate = CcTest::i_isolate(); 1514 Isolate* isolate = CcTest::i_isolate();
1513 v8::HandleScope scope(CcTest::isolate()); 1515 v8::HandleScope scope(CcTest::isolate());
1514 1516
1515 Handle<FieldType> any_type = FieldType::Any(isolate); 1517 Handle<FieldType> any_type = FieldType::Any(isolate);
1516 1518
1517 CompileRun("function func() { return 1; }"); 1519 CompileRun("function func() { return 1; }");
1518 1520
1519 Handle<JSObject> func = GetObject("func"); 1521 Handle<JSObject> func = GetObject("func");
1520 1522
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 1554
1553 // TODO(ishell): add respective tests for property kind reconfiguring from 1555 // TODO(ishell): add respective tests for property kind reconfiguring from
1554 // accessor field to double, once accessor fields are supported by 1556 // accessor field to double, once accessor fields are supported by
1555 // Map::ReconfigureProperty(). 1557 // Map::ReconfigureProperty().
1556 1558
1557 1559
1558 // TODO(ishell): add respective tests for fast property removal case once 1560 // TODO(ishell): add respective tests for fast property removal case once
1559 // Map::ReconfigureProperty() supports that. 1561 // Map::ReconfigureProperty() supports that.
1560 1562
1561 #endif 1563 #endif
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698