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

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

Issue 1088083002: Revert of Force full GCwhenever CollectAllGarbage is meant to trigger a full GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « src/heap/mark-compact-inl.h ('k') | test/cctest/test-api.cc » ('j') | 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 const v8::PropertyCallbackInfo<v8::Value>& info) { 270 const v8::PropertyCallbackInfo<v8::Value>& info) {
271 CHECK(info.GetIsolate() == CcTest::isolate()); 271 CHECK(info.GetIsolate() == CcTest::isolate());
272 CHECK(info.This() == info.Holder()); 272 CHECK(info.This() == info.Holder());
273 CHECK( 273 CHECK(
274 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data"))); 274 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data")));
275 ApiTestFuzzer::Fuzz(); 275 ApiTestFuzzer::Fuzz();
276 CHECK(info.GetIsolate() == CcTest::isolate()); 276 CHECK(info.GetIsolate() == CcTest::isolate());
277 CHECK(info.This() == info.Holder()); 277 CHECK(info.This() == info.Holder());
278 CHECK( 278 CHECK(
279 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data"))); 279 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data")));
280 CcTest::heap()->CollectAllGarbage(); 280 CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags);
281 CHECK(info.GetIsolate() == CcTest::isolate()); 281 CHECK(info.GetIsolate() == CcTest::isolate());
282 CHECK(info.This() == info.Holder()); 282 CHECK(info.This() == info.Holder());
283 CHECK( 283 CHECK(
284 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data"))); 284 info.Data()->Equals(v8::String::NewFromUtf8(CcTest::isolate(), "data")));
285 info.GetReturnValue().Set(17); 285 info.GetReturnValue().Set(17);
286 } 286 }
287 287
288 288
289 THREADED_TEST(DirectCall) { 289 THREADED_TEST(DirectCall) {
290 LocalContext context; 290 LocalContext context;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 681
682 security_check_value = true; 682 security_check_value = true;
683 ExpectInt32("f()", 907); 683 ExpectInt32("f()", 907);
684 security_check_value = false; 684 security_check_value = false;
685 { 685 {
686 v8::TryCatch try_catch(isolate); 686 v8::TryCatch try_catch(isolate);
687 CompileRun("f();"); 687 CompileRun("f();");
688 CHECK(try_catch.HasCaught()); 688 CHECK(try_catch.HasCaught());
689 } 689 }
690 } 690 }
OLDNEW
« no previous file with comments | « src/heap/mark-compact-inl.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698