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

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

Issue 11117020: Merged r12504, r12531, r12562, r12563, r12655 into 3.13 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.13
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-heap.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 17417 matching lines...) Expand 10 before | Expand all | Expand 10 after
17428 17428
17429 // Compile a try-finally clause where the finally block causes a GC 17429 // Compile a try-finally clause where the finally block causes a GC
17430 // while there still is a message pending for external reporting. 17430 // while there still is a message pending for external reporting.
17431 TryCatch try_catch; 17431 TryCatch try_catch;
17432 try_catch.SetVerbose(true); 17432 try_catch.SetVerbose(true);
17433 CompileRun("try { throw new Error(); } finally { gc(); }"); 17433 CompileRun("try { throw new Error(); } finally { gc(); }");
17434 CHECK(try_catch.HasCaught()); 17434 CHECK(try_catch.HasCaught());
17435 } 17435 }
17436 17436
17437 17437
17438 THREADED_TEST(Regress149912) {
17439 v8::HandleScope scope;
17440 LocalContext context;
17441 Handle<FunctionTemplate> templ = FunctionTemplate::New();
17442 AddInterceptor(templ, EmptyInterceptorGetter, EmptyInterceptorSetter);
17443 context->Global()->Set(v8_str("Bug"), templ->GetFunction());
17444 CompileRun("Number.prototype.__proto__ = new Bug; var x = 0; x.foo();");
17445 }
17446
17447
17438 #ifndef WIN32 17448 #ifndef WIN32
17439 class ThreadInterruptTest { 17449 class ThreadInterruptTest {
17440 public: 17450 public:
17441 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { } 17451 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { }
17442 ~ThreadInterruptTest() { delete sem_; } 17452 ~ThreadInterruptTest() { delete sem_; }
17443 17453
17444 void RunTest() { 17454 void RunTest() {
17445 sem_ = i::OS::CreateSemaphore(0); 17455 sem_ = i::OS::CreateSemaphore(0);
17446 17456
17447 InterruptThread i_thread(this); 17457 InterruptThread i_thread(this);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
17491 17501
17492 i::Semaphore* sem_; 17502 i::Semaphore* sem_;
17493 volatile int sem_value_; 17503 volatile int sem_value_;
17494 }; 17504 };
17495 17505
17496 17506
17497 THREADED_TEST(SemaphoreInterruption) { 17507 THREADED_TEST(SemaphoreInterruption) {
17498 ThreadInterruptTest().RunTest(); 17508 ThreadInterruptTest().RunTest();
17499 } 17509 }
17500 #endif // WIN32 17510 #endif // WIN32
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698