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

Side by Side Diff: test/cctest/test-heap.cc

Issue 10827084: Fix regression test on x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "execution.h" 7 #include "execution.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "macro-assembler.h" 9 #include "macro-assembler.h"
10 #include "global-handles.h" 10 #include "global-handles.h"
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 2011
2012 // Check values. 2012 // Check values.
2013 CHECK_EQ(hash, 2013 CHECK_EQ(hash,
2014 internal_obj->GetHiddenProperty(heap->identity_hash_symbol())); 2014 internal_obj->GetHiddenProperty(heap->identity_hash_symbol()));
2015 CHECK(value->Equals(obj->GetHiddenValue(v8_str("key string")))); 2015 CHECK(value->Equals(obj->GetHiddenValue(v8_str("key string"))));
2016 2016
2017 // Check size. 2017 // Check size.
2018 DescriptorArray* descriptors = internal_obj->map()->instance_descriptors(); 2018 DescriptorArray* descriptors = internal_obj->map()->instance_descriptors();
2019 ObjectHashTable* hashtable = ObjectHashTable::cast( 2019 ObjectHashTable* hashtable = ObjectHashTable::cast(
2020 internal_obj->FastPropertyAt(descriptors->GetFieldIndex(0))); 2020 internal_obj->FastPropertyAt(descriptors->GetFieldIndex(0)));
2021 CHECK_LE(hashtable->SizeFor(hashtable->length()), 52); 2021 // HashTable header (5) and 4 initial entries (8).
2022 CHECK_LE(hashtable->SizeFor(hashtable->length()), 13 * kPointerSize);
2022 } 2023 }
2023 } 2024 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698