OLD | NEW |
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 5580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5591 | 5591 |
5592 static void RequestInterrupt(const v8::FunctionCallbackInfo<v8::Value>& args) { | 5592 static void RequestInterrupt(const v8::FunctionCallbackInfo<v8::Value>& args) { |
5593 CcTest::isolate()->RequestInterrupt(&InterruptCallback357137, NULL); | 5593 CcTest::isolate()->RequestInterrupt(&InterruptCallback357137, NULL); |
5594 } | 5594 } |
5595 | 5595 |
5596 | 5596 |
5597 UNINITIALIZED_TEST(Regress538257) { | 5597 UNINITIALIZED_TEST(Regress538257) { |
5598 i::FLAG_manual_evacuation_candidates_selection = true; | 5598 i::FLAG_manual_evacuation_candidates_selection = true; |
5599 v8::Isolate::CreateParams create_params; | 5599 v8::Isolate::CreateParams create_params; |
5600 // Set heap limits. | 5600 // Set heap limits. |
5601 create_params.constraints.set_max_semi_space_size(1 * Page::kPageSize / MB); | 5601 create_params.constraints.set_max_semi_space_size(1); |
5602 create_params.constraints.set_max_old_space_size(6 * Page::kPageSize / MB); | 5602 create_params.constraints.set_max_old_space_size(6); |
5603 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); | 5603 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); |
5604 v8::Isolate* isolate = v8::Isolate::New(create_params); | 5604 v8::Isolate* isolate = v8::Isolate::New(create_params); |
5605 isolate->Enter(); | 5605 isolate->Enter(); |
5606 { | 5606 { |
5607 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); | 5607 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); |
5608 Heap* heap = i_isolate->heap(); | 5608 Heap* heap = i_isolate->heap(); |
5609 HandleScope handle_scope(i_isolate); | 5609 HandleScope handle_scope(i_isolate); |
5610 PagedSpace* old_space = heap->old_space(); | 5610 PagedSpace* old_space = heap->old_space(); |
5611 const int kMaxObjects = 10000; | 5611 const int kMaxObjects = 10000; |
5612 const int kFixedArrayLen = 512; | 5612 const int kFixedArrayLen = 512; |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7107 chunk, chunk->area_end() - kPointerSize, chunk->area_end()); | 7107 chunk, chunk->area_end() - kPointerSize, chunk->area_end()); |
7108 slots[chunk->area_end() - kPointerSize] = false; | 7108 slots[chunk->area_end() - kPointerSize] = false; |
7109 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [&slots](Address addr) { | 7109 RememberedSet<OLD_TO_NEW>::Iterate(chunk, [&slots](Address addr) { |
7110 CHECK(slots[addr]); | 7110 CHECK(slots[addr]); |
7111 return KEEP_SLOT; | 7111 return KEEP_SLOT; |
7112 }); | 7112 }); |
7113 } | 7113 } |
7114 | 7114 |
7115 } // namespace internal | 7115 } // namespace internal |
7116 } // namespace v8 | 7116 } // namespace v8 |
OLD | NEW |