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

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

Issue 652903008: Really disable test when running with optimize for size (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 v8::internal::AllocationResult allocation = 465 v8::internal::AllocationResult allocation =
466 space->AllocateRaw(new_linear_size); 466 space->AllocateRaw(new_linear_size);
467 v8::internal::FreeListNode* node = 467 v8::internal::FreeListNode* node =
468 v8::internal::FreeListNode::cast(allocation.ToObjectChecked()); 468 v8::internal::FreeListNode::cast(allocation.ToObjectChecked());
469 node->set_size(space->heap(), new_linear_size); 469 node->set_size(space->heap(), new_linear_size);
470 } 470 }
471 471
472 472
473 UNINITIALIZED_TEST(NewSpaceGrowsToTargetCapacity) { 473 UNINITIALIZED_TEST(NewSpaceGrowsToTargetCapacity) {
474 FLAG_target_semi_space_size = 2; 474 FLAG_target_semi_space_size = 2;
475 FLAG_optimize_for_size = false; 475 if (FLAG_optimize_for_size) return;
476 476
477 v8::Isolate* isolate = v8::Isolate::New(); 477 v8::Isolate* isolate = v8::Isolate::New();
478 { 478 {
479 v8::Isolate::Scope isolate_scope(isolate); 479 v8::Isolate::Scope isolate_scope(isolate);
480 v8::HandleScope handle_scope(isolate); 480 v8::HandleScope handle_scope(isolate);
481 v8::Context::New(isolate)->Enter(); 481 v8::Context::New(isolate)->Enter();
482 482
483 Isolate* i_isolate = reinterpret_cast<Isolate*>(isolate); 483 Isolate* i_isolate = reinterpret_cast<Isolate*>(isolate);
484 484
485 NewSpace* new_space = i_isolate->heap()->new_space(); 485 NewSpace* new_space = i_isolate->heap()->new_space();
(...skipping 15 matching lines...) Expand all
501 501
502 // Turn the allocation into a proper object so isolate teardown won't 502 // Turn the allocation into a proper object so isolate teardown won't
503 // crash. 503 // crash.
504 v8::internal::FreeListNode* node = 504 v8::internal::FreeListNode* node =
505 v8::internal::FreeListNode::cast(allocation.ToObjectChecked()); 505 v8::internal::FreeListNode::cast(allocation.ToObjectChecked());
506 node->set_size(new_space->heap(), 80); 506 node->set_size(new_space->heap(), 80);
507 } 507 }
508 } 508 }
509 isolate->Dispose(); 509 isolate->Dispose();
510 } 510 }
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