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

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

Issue 16942004: build fix for 15142 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 12747 matching lines...) Expand 10 before | Expand all | Expand 10 after
12758 v8::Isolate* isolate = outer->GetIsolate(); 12758 v8::Isolate* isolate = outer->GetIsolate();
12759 v8::Persistent<v8::Context> inner; 12759 v8::Persistent<v8::Context> inner;
12760 { 12760 {
12761 v8::HandleScope scope(isolate); 12761 v8::HandleScope scope(isolate);
12762 inner.Reset(isolate, v8::Context::New(isolate)); 12762 inner.Reset(isolate, v8::Context::New(isolate));
12763 } 12763 }
12764 v8::HandleScope scope(isolate); 12764 v8::HandleScope scope(isolate);
12765 { 12765 {
12766 // Don't want a handle here, so do this unsafely 12766 // Don't want a handle here, so do this unsafely
12767 v8::Handle<v8::Context> inner_local = 12767 v8::Handle<v8::Context> inner_local =
12768 *reinterpret_cast<v8::Handle<v8::Context>*>(&inner); 12768 v8::Utils::Convert<i::Object, v8::Context>(
12769 v8::Utils::OpenPersistent(inner));
12769 inner_local->Enter(); 12770 inner_local->Enter();
12770 inner.Dispose(); 12771 inner.Dispose();
12771 inner.Clear(); 12772 inner.Clear();
12772 inner_local->Exit(); 12773 inner_local->Exit();
12773 } 12774 }
12774 } 12775 }
12775 12776
12776 12777
12777 // Regression test for issue 54, object templates with internal fields 12778 // Regression test for issue 54, object templates with internal fields
12778 // but no accessors or interceptors did not get their internal field 12779 // but no accessors or interceptors did not get their internal field
(...skipping 6675 matching lines...) Expand 10 before | Expand all | Expand 10 after
19454 i::Semaphore* sem_; 19455 i::Semaphore* sem_;
19455 volatile int sem_value_; 19456 volatile int sem_value_;
19456 }; 19457 };
19457 19458
19458 19459
19459 THREADED_TEST(SemaphoreInterruption) { 19460 THREADED_TEST(SemaphoreInterruption) {
19460 ThreadInterruptTest().RunTest(); 19461 ThreadInterruptTest().RunTest();
19461 } 19462 }
19462 19463
19463 #endif // WIN32 19464 #endif // WIN32
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