| 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 4303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4314 "gc();" | 4314 "gc();" |
| 4315 "gc();" | 4315 "gc();" |
| 4316 "array.shift();" | 4316 "array.shift();" |
| 4317 "array;"); | 4317 "array;"); |
| 4318 | 4318 |
| 4319 Handle<JSObject> o = | 4319 Handle<JSObject> o = |
| 4320 v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(result)); | 4320 v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(result)); |
| 4321 CHECK(heap->InOldPointerSpace(o->elements())); | 4321 CHECK(heap->InOldPointerSpace(o->elements())); |
| 4322 CHECK(heap->InOldPointerSpace(*o)); | 4322 CHECK(heap->InOldPointerSpace(*o)); |
| 4323 Page* page = Page::FromAddress(o->elements()->address()); | 4323 Page* page = Page::FromAddress(o->elements()->address()); |
| 4324 CHECK(page->parallel_sweeping() <= MemoryChunk::PARALLEL_SWEEPING_FINALIZE || | 4324 CHECK(page->parallel_sweeping() <= MemoryChunk::SWEEPING_FINALIZE || |
| 4325 Marking::IsBlack(Marking::MarkBitFrom(o->elements()))); | 4325 Marking::IsBlack(Marking::MarkBitFrom(o->elements()))); |
| 4326 } | 4326 } |
| 4327 | 4327 |
| 4328 | 4328 |
| 4329 TEST(PromotionQueue) { | 4329 TEST(PromotionQueue) { |
| 4330 i::FLAG_expose_gc = true; | 4330 i::FLAG_expose_gc = true; |
| 4331 i::FLAG_max_semi_space_size = 2; | 4331 i::FLAG_max_semi_space_size = 2; |
| 4332 CcTest::InitializeVM(); | 4332 CcTest::InitializeVM(); |
| 4333 v8::HandleScope scope(CcTest::isolate()); | 4333 v8::HandleScope scope(CcTest::isolate()); |
| 4334 Isolate* isolate = CcTest::i_isolate(); | 4334 Isolate* isolate = CcTest::i_isolate(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4404 #ifdef DEBUG | 4404 #ifdef DEBUG |
| 4405 TEST(PathTracer) { | 4405 TEST(PathTracer) { |
| 4406 CcTest::InitializeVM(); | 4406 CcTest::InitializeVM(); |
| 4407 v8::HandleScope scope(CcTest::isolate()); | 4407 v8::HandleScope scope(CcTest::isolate()); |
| 4408 | 4408 |
| 4409 v8::Local<v8::Value> result = CompileRun("'abc'"); | 4409 v8::Local<v8::Value> result = CompileRun("'abc'"); |
| 4410 Handle<Object> o = v8::Utils::OpenHandle(*result); | 4410 Handle<Object> o = v8::Utils::OpenHandle(*result); |
| 4411 CcTest::i_isolate()->heap()->TracePathToObject(*o); | 4411 CcTest::i_isolate()->heap()->TracePathToObject(*o); |
| 4412 } | 4412 } |
| 4413 #endif // DEBUG | 4413 #endif // DEBUG |
| OLD | NEW |