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

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

Issue 257035: Remove the high-priority flag from IdleNotification() since... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/v8.cc ('k') | 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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 7967 matching lines...) Expand 10 before | Expand all | Expand 10 after
7978 v8::Script::New(src, origin)->Run(); 7978 v8::Script::New(src, origin)->Run();
7979 CHECK(try_catch.HasCaught()); 7979 CHECK(try_catch.HasCaught());
7980 v8::String::Utf8Value stack(try_catch.StackTrace()); 7980 v8::String::Utf8Value stack(try_catch.StackTrace());
7981 CHECK(strstr(*stack, "at foo (stack-trace-test") != NULL); 7981 CHECK(strstr(*stack, "at foo (stack-trace-test") != NULL);
7982 } 7982 }
7983 7983
7984 7984
7985 // Test that idle notification can be handled when V8 has not yet been 7985 // Test that idle notification can be handled when V8 has not yet been
7986 // set up. 7986 // set up.
7987 THREADED_TEST(IdleNotification) { 7987 THREADED_TEST(IdleNotification) {
7988 for (int i = 0; i < 100; i++) v8::V8::IdleNotification(true); 7988 for (int i = 0; i < 100; i++)
7989 for (int i = 0; i < 100; i++) v8::V8::IdleNotification(false); 7989 CHECK(v8::V8::IdleNotification());
7990 } 7990 }
7991 7991
7992 7992
7993 static uint32_t* stack_limit; 7993 static uint32_t* stack_limit;
7994 7994
7995 static v8::Handle<Value> GetStackLimitCallback(const v8::Arguments& args) { 7995 static v8::Handle<Value> GetStackLimitCallback(const v8::Arguments& args) {
7996 stack_limit = reinterpret_cast<uint32_t*>(i::StackGuard::climit()); 7996 stack_limit = reinterpret_cast<uint32_t*>(i::StackGuard::climit());
7997 return v8::Undefined(); 7997 return v8::Undefined();
7998 } 7998 }
7999 7999
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
8055 env->Global()->Set(v8_str("get_stack_limit"), fun); 8055 env->Global()->Set(v8_str("get_stack_limit"), fun);
8056 CompileRun("get_stack_limit();"); 8056 CompileRun("get_stack_limit();");
8057 8057
8058 CHECK(stack_limit == set_limit); 8058 CHECK(stack_limit == set_limit);
8059 } 8059 }
8060 { 8060 {
8061 v8::Locker locker; 8061 v8::Locker locker;
8062 CHECK(stack_limit == set_limit); 8062 CHECK(stack_limit == set_limit);
8063 } 8063 }
8064 } 8064 }
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698