OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |