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

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

Issue 11233033: Fix deletion of hidden property with inline-stored hash. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Yang Guo. Created 8 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/objects.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 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 17678 matching lines...) Expand 10 before | Expand all | Expand 10 after
17689 THREADED_TEST(Regress149912) { 17689 THREADED_TEST(Regress149912) {
17690 v8::HandleScope scope; 17690 v8::HandleScope scope;
17691 LocalContext context; 17691 LocalContext context;
17692 Handle<FunctionTemplate> templ = FunctionTemplate::New(); 17692 Handle<FunctionTemplate> templ = FunctionTemplate::New();
17693 AddInterceptor(templ, EmptyInterceptorGetter, EmptyInterceptorSetter); 17693 AddInterceptor(templ, EmptyInterceptorGetter, EmptyInterceptorSetter);
17694 context->Global()->Set(v8_str("Bug"), templ->GetFunction()); 17694 context->Global()->Set(v8_str("Bug"), templ->GetFunction());
17695 CompileRun("Number.prototype.__proto__ = new Bug; var x = 0; x.foo();"); 17695 CompileRun("Number.prototype.__proto__ = new Bug; var x = 0; x.foo();");
17696 } 17696 }
17697 17697
17698 17698
17699 THREADED_TEST(Regress157124) {
17700 v8::HandleScope scope;
17701 LocalContext context;
17702 Local<ObjectTemplate> templ = ObjectTemplate::New();
17703 Local<Object> obj = templ->NewInstance();
17704 obj->GetIdentityHash();
17705 obj->DeleteHiddenValue(v8_str("Bug"));
17706 }
17707
17708
17699 #ifndef WIN32 17709 #ifndef WIN32
17700 class ThreadInterruptTest { 17710 class ThreadInterruptTest {
17701 public: 17711 public:
17702 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { } 17712 ThreadInterruptTest() : sem_(NULL), sem_value_(0) { }
17703 ~ThreadInterruptTest() { delete sem_; } 17713 ~ThreadInterruptTest() { delete sem_; }
17704 17714
17705 void RunTest() { 17715 void RunTest() {
17706 sem_ = i::OS::CreateSemaphore(0); 17716 sem_ = i::OS::CreateSemaphore(0);
17707 17717
17708 InterruptThread i_thread(this); 17718 InterruptThread i_thread(this);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
17752 17762
17753 i::Semaphore* sem_; 17763 i::Semaphore* sem_;
17754 volatile int sem_value_; 17764 volatile int sem_value_;
17755 }; 17765 };
17756 17766
17757 17767
17758 THREADED_TEST(SemaphoreInterruption) { 17768 THREADED_TEST(SemaphoreInterruption) {
17759 ThreadInterruptTest().RunTest(); 17769 ThreadInterruptTest().RunTest();
17760 } 17770 }
17761 #endif // WIN32 17771 #endif // WIN32
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698