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 20299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20310 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, " | 20310 "'a00': 0, 'a01': 0, 'a02': 0, 'a03': 0, 'a04': 0, " |
20311 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, " | 20311 "'a05': 0, 'a06': 0, 'a07': 0, 'a08': 0, 'a09': 0, " |
20312 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, " | 20312 "'a10': 0, 'a11': 0, 'a12': 0, 'a13': 0, 'a14': 0, " |
20313 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, " | 20313 "'a15': 0, 'a16': 0, 'a17': 0, 'a18': 0, 'a19': 0, " |
20314 "})"); | 20314 "})"); |
20315 } | 20315 } |
20316 | 20316 |
20317 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context()); | 20317 int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context()); |
20318 CHECK_LE(1, elements); | 20318 CHECK_LE(1, elements); |
20319 | 20319 |
20320 CcTest::heap()->CollectAllGarbage(); | 20320 // We have to abort incremental marking here to abandon black pages. |
| 20321 CcTest::heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask); |
20321 | 20322 |
20322 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context())); | 20323 CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context())); |
20323 } | 20324 } |
20324 | 20325 |
20325 | 20326 |
20326 THREADED_TEST(Regress93759) { | 20327 THREADED_TEST(Regress93759) { |
20327 v8::Isolate* isolate = CcTest::isolate(); | 20328 v8::Isolate* isolate = CcTest::isolate(); |
20328 HandleScope scope(isolate); | 20329 HandleScope scope(isolate); |
20329 | 20330 |
20330 // Template for object with security check. | 20331 // Template for object with security check. |
(...skipping 4317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24648 CHECK(proxy->GetTarget()->SameValue(target)); | 24649 CHECK(proxy->GetTarget()->SameValue(target)); |
24649 CHECK(proxy->GetHandler()->SameValue(handler)); | 24650 CHECK(proxy->GetHandler()->SameValue(handler)); |
24650 | 24651 |
24651 proxy->Revoke(); | 24652 proxy->Revoke(); |
24652 CHECK(proxy->IsProxy()); | 24653 CHECK(proxy->IsProxy()); |
24653 CHECK(!target->IsProxy()); | 24654 CHECK(!target->IsProxy()); |
24654 CHECK(proxy->IsRevoked()); | 24655 CHECK(proxy->IsRevoked()); |
24655 CHECK(proxy->GetTarget()->SameValue(target)); | 24656 CHECK(proxy->GetTarget()->SameValue(target)); |
24656 CHECK(proxy->GetHandler()->IsNull()); | 24657 CHECK(proxy->GetHandler()->IsNull()); |
24657 } | 24658 } |
OLD | NEW |