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

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

Issue 585843002: Fix leak in cctest/test-heap/ReleaseStackTraceData (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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 3369 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 ReleaseStackTraceDataTest(isolate, source2, setter); 3380 ReleaseStackTraceDataTest(isolate, source2, setter);
3381 // We do not test source3 and source4 with setter, since the setter is 3381 // We do not test source3 and source4 with setter, since the setter is
3382 // supposed to (untypically) write to the receiver, not the holder. This is 3382 // supposed to (untypically) write to the receiver, not the holder. This is
3383 // to emulate the behavior of a data property. 3383 // to emulate the behavior of a data property.
3384 3384
3385 ReleaseStackTraceDataTest(isolate, source1, getter); 3385 ReleaseStackTraceDataTest(isolate, source1, getter);
3386 ReleaseStackTraceDataTest(isolate, source2, getter); 3386 ReleaseStackTraceDataTest(isolate, source2, getter);
3387 ReleaseStackTraceDataTest(isolate, source3, getter); 3387 ReleaseStackTraceDataTest(isolate, source3, getter);
3388 ReleaseStackTraceDataTest(isolate, source4, getter); 3388 ReleaseStackTraceDataTest(isolate, source4, getter);
3389 } 3389 }
3390 isolate->Dispose();
3390 } 3391 }
3391 3392
3392 3393
3393 TEST(Regress159140) { 3394 TEST(Regress159140) {
3394 i::FLAG_allow_natives_syntax = true; 3395 i::FLAG_allow_natives_syntax = true;
3395 i::FLAG_flush_code_incrementally = true; 3396 i::FLAG_flush_code_incrementally = true;
3396 CcTest::InitializeVM(); 3397 CcTest::InitializeVM();
3397 Isolate* isolate = CcTest::i_isolate(); 3398 Isolate* isolate = CcTest::i_isolate();
3398 Heap* heap = isolate->heap(); 3399 Heap* heap = isolate->heap();
3399 HandleScope scope(isolate); 3400 HandleScope scope(isolate);
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4500 #ifdef DEBUG 4501 #ifdef DEBUG
4501 TEST(PathTracer) { 4502 TEST(PathTracer) {
4502 CcTest::InitializeVM(); 4503 CcTest::InitializeVM();
4503 v8::HandleScope scope(CcTest::isolate()); 4504 v8::HandleScope scope(CcTest::isolate());
4504 4505
4505 v8::Local<v8::Value> result = CompileRun("'abc'"); 4506 v8::Local<v8::Value> result = CompileRun("'abc'");
4506 Handle<Object> o = v8::Utils::OpenHandle(*result); 4507 Handle<Object> o = v8::Utils::OpenHandle(*result);
4507 CcTest::i_isolate()->heap()->TracePathToObject(*o); 4508 CcTest::i_isolate()->heap()->TracePathToObject(*o);
4508 } 4509 }
4509 #endif // DEBUG 4510 #endif // DEBUG
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698