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 10780035: Fix presubmit failure in r12107. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 10955 matching lines...) Expand 10 before | Expand all | Expand 10 after
10966 bar_count = 0; 10966 bar_count = 0;
10967 foo_count = 0; 10967 foo_count = 0;
10968 v8::V8::SetFunctionEntryHook(NULL); 10968 v8::V8::SetFunctionEntryHook(NULL);
10969 10969
10970 // Clear the compilation cache to make sure we don't reuse the 10970 // Clear the compilation cache to make sure we don't reuse the
10971 // functions from the previous invocation. 10971 // functions from the previous invocation.
10972 v8::internal::Isolate::Current()->compilation_cache()->Clear(); 10972 v8::internal::Isolate::Current()->compilation_cache()->Clear();
10973 10973
10974 // Verify that entry hooking is now disabled. 10974 // Verify that entry hooking is now disabled.
10975 RunLoopInNewEnv(); 10975 RunLoopInNewEnv();
10976 CHECK(0u == bar_count); 10976 CHECK_EQ(0u, bar_count);
10977 CHECK(0u == foo_count); 10977 CHECK_EQ(0u, foo_count);
10978 } 10978 }
10979 10979
10980 10980
10981 static int64_t cast(intptr_t x) { return static_cast<int64_t>(x); } 10981 static int64_t cast(intptr_t x) { return static_cast<int64_t>(x); }
10982 10982
10983 10983
10984 THREADED_TEST(ExternalAllocatedMemory) { 10984 THREADED_TEST(ExternalAllocatedMemory) {
10985 v8::HandleScope outer; 10985 v8::HandleScope outer;
10986 v8::Persistent<Context> env(Context::New()); 10986 v8::Persistent<Context> env(Context::New());
10987 CHECK(!env.IsEmpty()); 10987 CHECK(!env.IsEmpty());
(...skipping 5980 matching lines...) Expand 10 before | Expand all | Expand 10 after
16968 v8::HandleScope scope; 16968 v8::HandleScope scope;
16969 LocalContext context; 16969 LocalContext context;
16970 16970
16971 // Compile a try-finally clause where the finally block causes a GC 16971 // Compile a try-finally clause where the finally block causes a GC
16972 // while there still is a message pending for external reporting. 16972 // while there still is a message pending for external reporting.
16973 TryCatch try_catch; 16973 TryCatch try_catch;
16974 try_catch.SetVerbose(true); 16974 try_catch.SetVerbose(true);
16975 CompileRun("try { throw new Error(); } finally { gc(); }"); 16975 CompileRun("try { throw new Error(); } finally { gc(); }");
16976 CHECK(try_catch.HasCaught()); 16976 CHECK(try_catch.HasCaught());
16977 } 16977 }
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