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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |