OLD | NEW |
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 12207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12218 static const char* kPropertyA = "a"; | 12218 static const char* kPropertyA = "a"; |
12219 static const char* kPropertyH = "h"; | 12219 static const char* kPropertyH = "h"; |
12220 | 12220 |
12221 static bool NamedGetAccessBlockAandH(Local<v8::Object> obj, | 12221 static bool NamedGetAccessBlockAandH(Local<v8::Object> obj, |
12222 Local<Value> name, | 12222 Local<Value> name, |
12223 v8::AccessType type, | 12223 v8::AccessType type, |
12224 Local<Value> data) { | 12224 Local<Value> data) { |
12225 if (!name->IsString()) return false; | 12225 if (!name->IsString()) return false; |
12226 i::Handle<i::String> name_handle = | 12226 i::Handle<i::String> name_handle = |
12227 v8::Utils::OpenHandle(String::Cast(*name)); | 12227 v8::Utils::OpenHandle(String::Cast(*name)); |
12228 return !name_handle->IsEqualTo(i::CStrVector(kPropertyA)) | 12228 return !name_handle->IsUtf8EqualTo(i::CStrVector(kPropertyA)) |
12229 && !name_handle->IsEqualTo(i::CStrVector(kPropertyH)); | 12229 && !name_handle->IsUtf8EqualTo(i::CStrVector(kPropertyH)); |
12230 } | 12230 } |
12231 | 12231 |
12232 | 12232 |
12233 THREADED_TEST(TurnOnAccessCheckAndRecompile) { | 12233 THREADED_TEST(TurnOnAccessCheckAndRecompile) { |
12234 v8::HandleScope handle_scope; | 12234 v8::HandleScope handle_scope; |
12235 | 12235 |
12236 // Create an environment with access check to the global object disabled by | 12236 // Create an environment with access check to the global object disabled by |
12237 // default. When the registered access checker will block access to properties | 12237 // default. When the registered access checker will block access to properties |
12238 // a and h. | 12238 // a and h. |
12239 v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); | 12239 v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); |
(...skipping 5949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18189 | 18189 |
18190 i::Semaphore* sem_; | 18190 i::Semaphore* sem_; |
18191 volatile int sem_value_; | 18191 volatile int sem_value_; |
18192 }; | 18192 }; |
18193 | 18193 |
18194 | 18194 |
18195 THREADED_TEST(SemaphoreInterruption) { | 18195 THREADED_TEST(SemaphoreInterruption) { |
18196 ThreadInterruptTest().RunTest(); | 18196 ThreadInterruptTest().RunTest(); |
18197 } | 18197 } |
18198 #endif // WIN32 | 18198 #endif // WIN32 |
OLD | NEW |