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

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

Issue 1319943002: [interpreter] Fix gcmole error after r30404. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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 // 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 i::FLAG_manual_evacuation_candidates_selection = true; 716 i::FLAG_manual_evacuation_candidates_selection = true;
717 CcTest::InitializeVM(); 717 CcTest::InitializeVM();
718 Isolate* isolate = CcTest::i_isolate(); 718 Isolate* isolate = CcTest::i_isolate();
719 Heap* heap = isolate->heap(); 719 Heap* heap = isolate->heap();
720 Factory* factory = isolate->factory(); 720 Factory* factory = isolate->factory();
721 HandleScope scope(isolate); 721 HandleScope scope(isolate);
722 722
723 SimulateFullSpace(heap->old_space()); 723 SimulateFullSpace(heap->old_space());
724 Handle<FixedArray> constant_pool = factory->NewFixedArray(5, TENURED); 724 Handle<FixedArray> constant_pool = factory->NewFixedArray(5, TENURED);
725 for (int i = 0; i < 5; i++) { 725 for (int i = 0; i < 5; i++) {
726 constant_pool->set(i, *factory->NewHeapNumber(i)); 726 Handle<Object> number = factory->NewHeapNumber(i);
727 constant_pool->set(i, *number);
727 } 728 }
728 729
729 // Allocate and initialize BytecodeArray 730 // Allocate and initialize BytecodeArray
730 Handle<BytecodeArray> array = factory->NewBytecodeArray( 731 Handle<BytecodeArray> array = factory->NewBytecodeArray(
731 kRawBytesSize, kRawBytes, kFrameSize, kParameterCount, constant_pool); 732 kRawBytesSize, kRawBytes, kFrameSize, kParameterCount, constant_pool);
732 733
733 CHECK(array->IsBytecodeArray()); 734 CHECK(array->IsBytecodeArray());
734 CHECK_EQ(array->length(), (int)sizeof(kRawBytes)); 735 CHECK_EQ(array->length(), (int)sizeof(kRawBytes));
735 CHECK_EQ(array->frame_size(), kFrameSize); 736 CHECK_EQ(array->frame_size(), kFrameSize);
736 CHECK_EQ(array->parameter_count(), kParameterCount); 737 CHECK_EQ(array->parameter_count(), kParameterCount);
(...skipping 5847 matching lines...) Expand 10 before | Expand all | Expand 10 after
6584 { 6585 {
6585 SharedFunctionInfo::Iterator iterator(isolate); 6586 SharedFunctionInfo::Iterator iterator(isolate);
6586 while (iterator.Next()) sfi_count--; 6587 while (iterator.Next()) sfi_count--;
6587 } 6588 }
6588 6589
6589 CHECK_EQ(0, sfi_count); 6590 CHECK_EQ(0, sfi_count);
6590 } 6591 }
6591 6592
6592 } // namespace internal 6593 } // namespace internal
6593 } // namespace v8 6594 } // namespace v8
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