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

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

Issue 271543004: Reland - Arm64: Ensure that csp is always aligned to 16 byte values even if jssp is not. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ip0 ip1 -> TmpList Created 6 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-code-stubs-arm64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 403
404 TEST(SizeOfFirstPageIsLargeEnough) { 404 TEST(SizeOfFirstPageIsLargeEnough) {
405 if (i::FLAG_always_opt) return; 405 if (i::FLAG_always_opt) return;
406 CcTest::InitializeVM(); 406 CcTest::InitializeVM();
407 Isolate* isolate = CcTest::i_isolate(); 407 Isolate* isolate = CcTest::i_isolate();
408 408
409 // Freshly initialized VM gets by with one page per space. 409 // Freshly initialized VM gets by with one page per space.
410 for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) { 410 for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) {
411 // Debug code can be very large, so skip CODE_SPACE if we are generating it.
412 if (i == CODE_SPACE && i::FLAG_debug_code) continue;
411 CHECK_EQ(1, isolate->heap()->paged_space(i)->CountTotalPages()); 413 CHECK_EQ(1, isolate->heap()->paged_space(i)->CountTotalPages());
412 } 414 }
413 415
414 // Executing the empty script gets by with one page per space. 416 // Executing the empty script gets by with one page per space.
415 HandleScope scope(isolate); 417 HandleScope scope(isolate);
416 CompileRun("/*empty*/"); 418 CompileRun("/*empty*/");
417 for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) { 419 for (int i = FIRST_PAGED_SPACE; i <= LAST_PAGED_SPACE; i++) {
420 // Debug code can be very large, so skip CODE_SPACE if we are generating it.
421 if (i == CODE_SPACE && i::FLAG_debug_code) continue;
418 CHECK_EQ(1, isolate->heap()->paged_space(i)->CountTotalPages()); 422 CHECK_EQ(1, isolate->heap()->paged_space(i)->CountTotalPages());
419 } 423 }
420 424
421 // No large objects required to perform the above steps. 425 // No large objects required to perform the above steps.
422 CHECK(isolate->heap()->lo_space()->IsEmpty()); 426 CHECK(isolate->heap()->lo_space()->IsEmpty());
423 } 427 }
OLDNEW
« no previous file with comments | « test/cctest/test-code-stubs-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698