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

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

Issue 751863002: Revert of Enable inobject double fields unboxing for 64-bit archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « src/heap/store-buffer.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 19 matching lines...) Expand all
30 return HeapNumber::cast(value)->value(); 30 return HeapNumber::cast(value)->value();
31 } 31 }
32 } 32 }
33 33
34 34
35 enum PropertyKind { 35 enum PropertyKind {
36 PROP_CONSTANT, 36 PROP_CONSTANT,
37 PROP_SMI, 37 PROP_SMI,
38 PROP_DOUBLE, 38 PROP_DOUBLE,
39 PROP_TAGGED, 39 PROP_TAGGED,
40 PROP_KIND_NUMBER 40 PROP_KIND_NUMBER,
41 }; 41 };
42 42
43 static Representation representations[PROP_KIND_NUMBER] = { 43 static Representation representations[PROP_KIND_NUMBER] = {
44 Representation::None(), Representation::Smi(), Representation::Double(), 44 Representation::None(), Representation::Smi(), Representation::Double(),
45 Representation::Tagged()}; 45 Representation::Tagged()};
46 46
47 47
48 static Handle<DescriptorArray> CreateDescriptorArray(Isolate* isolate, 48 static Handle<DescriptorArray> CreateDescriptorArray(Isolate* isolate,
49 PropertyKind* props, 49 PropertyKind* props,
50 int kPropsCount) { 50 int kPropsCount) {
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); 660 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address());
661 chunk->set_scan_on_scavenge(true); 661 chunk->set_scan_on_scavenge(true);
662 662
663 // Trigger GCs and force evacuation. Should not crash there. 663 // Trigger GCs and force evacuation. Should not crash there.
664 CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); 664 CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags);
665 665
666 CHECK_EQ(boom_value, GetDoubleFieldValue(*obj, field_index)); 666 CHECK_EQ(boom_value, GetDoubleFieldValue(*obj, field_index));
667 } 667 }
668 668
669 #endif 669 #endif
OLDNEW
« no previous file with comments | « src/heap/store-buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698