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

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

Issue 12223089: Fixed a memory leak in v8 and another one in d8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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/v8.cc ('k') | test/cctest/test-lockers.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 16404 matching lines...) Expand 10 before | Expand all | Expand 10 after
16415 } 16415 }
16416 { 16416 {
16417 v8::Isolate::Scope isolate_scope(isolate); 16417 v8::Isolate::Scope isolate_scope(isolate);
16418 v8::HandleScope handle_scope; 16418 v8::HandleScope handle_scope;
16419 context = v8::Context::New(); 16419 context = v8::Context::New();
16420 v8::Context::Scope context_scope(context); 16420 v8::Context::Scope context_scope(context);
16421 Local<Value> v = CompileRun("22"); 16421 Local<Value> v = CompileRun("22");
16422 CHECK(v->IsNumber()); 16422 CHECK(v->IsNumber());
16423 CHECK_EQ(22, static_cast<int>(v->NumberValue())); 16423 CHECK_EQ(22, static_cast<int>(v->NumberValue()));
16424 } 16424 }
16425 isolate->Dispose();
16425 } 16426 }
16426 16427
16427 class InitDefaultIsolateThread : public v8::internal::Thread { 16428 class InitDefaultIsolateThread : public v8::internal::Thread {
16428 public: 16429 public:
16429 enum TestCase { 16430 enum TestCase {
16430 IgnoreOOM, 16431 IgnoreOOM,
16431 SetResourceConstraints, 16432 SetResourceConstraints,
16432 SetFatalHandler, 16433 SetFatalHandler,
16433 SetCounterFunction, 16434 SetCounterFunction,
16434 SetCreateHistogramFunction, 16435 SetCreateHistogramFunction,
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
18215 i::Semaphore* sem_; 18216 i::Semaphore* sem_;
18216 volatile int sem_value_; 18217 volatile int sem_value_;
18217 }; 18218 };
18218 18219
18219 18220
18220 THREADED_TEST(SemaphoreInterruption) { 18221 THREADED_TEST(SemaphoreInterruption) {
18221 ThreadInterruptTest().RunTest(); 18222 ThreadInterruptTest().RunTest();
18222 } 18223 }
18223 18224
18224 #endif // WIN32 18225 #endif // WIN32
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | test/cctest/test-lockers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698