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

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

Issue 178054: Add explicit integer type-casts to make WIN64 build without errors. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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 | « src/serialize.cc ('k') | test/cctest/test-utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Check ToString for Numbers 172 // Check ToString for Numbers
173 CheckNumber(1.1, "1.1"); 173 CheckNumber(1.1, "1.1");
174 174
175 CheckFindCodeObject(); 175 CheckFindCodeObject();
176 } 176 }
177 177
178 178
179 TEST(Tagging) { 179 TEST(Tagging) {
180 InitializeVM(); 180 InitializeVM();
181 int request = 24; 181 int request = 24;
182 ASSERT_EQ(request, OBJECT_SIZE_ALIGN(request)); 182 ASSERT_EQ(static_cast<intptr_t>(request), OBJECT_SIZE_ALIGN(request));
183 CHECK(Smi::FromInt(42)->IsSmi()); 183 CHECK(Smi::FromInt(42)->IsSmi());
184 CHECK(Failure::RetryAfterGC(request, NEW_SPACE)->IsFailure()); 184 CHECK(Failure::RetryAfterGC(request, NEW_SPACE)->IsFailure());
185 CHECK_EQ(request, Failure::RetryAfterGC(request, NEW_SPACE)->requested()); 185 CHECK_EQ(request, Failure::RetryAfterGC(request, NEW_SPACE)->requested());
186 CHECK_EQ(NEW_SPACE, 186 CHECK_EQ(NEW_SPACE,
187 Failure::RetryAfterGC(request, NEW_SPACE)->allocation_space()); 187 Failure::RetryAfterGC(request, NEW_SPACE)->allocation_space());
188 CHECK_EQ(OLD_POINTER_SPACE, 188 CHECK_EQ(OLD_POINTER_SPACE,
189 Failure::RetryAfterGC(request, 189 Failure::RetryAfterGC(request,
190 OLD_POINTER_SPACE)->allocation_space()); 190 OLD_POINTER_SPACE)->allocation_space());
191 CHECK(Failure::Exception()->IsFailure()); 191 CHECK(Failure::Exception()->IsFailure());
192 CHECK(Smi::FromInt(Smi::kMinValue)->IsSmi()); 192 CHECK(Smi::FromInt(Smi::kMinValue)->IsSmi());
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 objs[next_objs_index++] = 783 objs[next_objs_index++] =
784 Factory::NewStringFromAscii(CStrVector(str), TENURED); 784 Factory::NewStringFromAscii(CStrVector(str), TENURED);
785 delete[] str; 785 delete[] str;
786 786
787 // Add a Map object to look for. 787 // Add a Map object to look for.
788 objs[next_objs_index++] = Handle<Map>(HeapObject::cast(*objs[0])->map()); 788 objs[next_objs_index++] = Handle<Map>(HeapObject::cast(*objs[0])->map());
789 789
790 CHECK_EQ(objs_count, next_objs_index); 790 CHECK_EQ(objs_count, next_objs_index);
791 CHECK_EQ(objs_count, ObjectsFoundInHeap(objs, objs_count)); 791 CHECK_EQ(objs_count, ObjectsFoundInHeap(objs, objs_count));
792 } 792 }
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | test/cctest/test-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698