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

Side by Side Diff: test/cctest/test-api-interceptors.cc

Issue 1082973003: Force full GC whenever 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 | « test/cctest/test-api.cc ('k') | test/cctest/test-constantpool.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "test/cctest/test-api.h" 7 #include "test/cctest/test-api.h"
8 8
9 #include "include/v8-util.h" 9 #include "include/v8-util.h"
10 #include "src/api.h" 10 #include "src/api.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 306
307 void InterceptorHasOwnPropertyGetter( 307 void InterceptorHasOwnPropertyGetter(
308 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { 308 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) {
309 ApiTestFuzzer::Fuzz(); 309 ApiTestFuzzer::Fuzz();
310 } 310 }
311 311
312 void InterceptorHasOwnPropertyGetterGC( 312 void InterceptorHasOwnPropertyGetterGC(
313 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { 313 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) {
314 ApiTestFuzzer::Fuzz(); 314 ApiTestFuzzer::Fuzz();
315 CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); 315 CcTest::heap()->CollectAllGarbage();
316 } 316 }
317 317
318 } // namespace 318 } // namespace
319 319
320 320
321 THREADED_TEST(InterceptorHasOwnProperty) { 321 THREADED_TEST(InterceptorHasOwnProperty) {
322 LocalContext context; 322 LocalContext context;
323 v8::Isolate* isolate = context->GetIsolate(); 323 v8::Isolate* isolate = context->GetIsolate();
324 v8::HandleScope scope(isolate); 324 v8::HandleScope scope(isolate);
325 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); 325 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate);
(...skipping 2976 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 "var obj = intercepted_1;" 3302 "var obj = intercepted_1;"
3303 "obj.x = 4;" 3303 "obj.x = 4;"
3304 "eval('obj.x');" 3304 "eval('obj.x');"
3305 "eval('obj.x');" 3305 "eval('obj.x');"
3306 "eval('obj.x');" 3306 "eval('obj.x');"
3307 "obj = intercepted_2;" 3307 "obj = intercepted_2;"
3308 "obj.x = 9;" 3308 "obj.x = 9;"
3309 "eval('obj.x');", 3309 "eval('obj.x');",
3310 9); 3310 9);
3311 } 3311 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-constantpool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698