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

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

Issue 10034014: Fix Windows 64 bit compile. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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 10853 matching lines...) Expand 10 before | Expand all | Expand 10 after
10864 env.Dispose(); 10864 env.Dispose();
10865 } 10865 }
10866 10866
10867 10867
10868 THREADED_TEST(ExternalAllocatedMemory) { 10868 THREADED_TEST(ExternalAllocatedMemory) {
10869 v8::HandleScope outer; 10869 v8::HandleScope outer;
10870 v8::Persistent<Context> env(Context::New()); 10870 v8::Persistent<Context> env(Context::New());
10871 CHECK(!env.IsEmpty()); 10871 CHECK(!env.IsEmpty());
10872 const intptr_t kSize = 1024*1024; 10872 const intptr_t kSize = 1024*1024;
10873 CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize), kSize); 10873 CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize), kSize);
10874 CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize), 0l); 10874 CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize),
10875 static_cast<intptr_t>(0));
10875 } 10876 }
10876 10877
10877 10878
10878 THREADED_TEST(DisposeEnteredContext) { 10879 THREADED_TEST(DisposeEnteredContext) {
10879 v8::HandleScope scope; 10880 v8::HandleScope scope;
10880 LocalContext outer; 10881 LocalContext outer;
10881 { v8::Persistent<v8::Context> inner = v8::Context::New(); 10882 { v8::Persistent<v8::Context> inner = v8::Context::New();
10882 inner->Enter(); 10883 inner->Enter();
10883 inner.Dispose(); 10884 inner.Dispose();
10884 inner.Clear(); 10885 inner.Clear();
(...skipping 5509 matching lines...) Expand 10 before | Expand all | Expand 10 after
16394 16395
16395 TEST(SecondaryStubCache) { 16396 TEST(SecondaryStubCache) {
16396 StubCacheHelper(true); 16397 StubCacheHelper(true);
16397 } 16398 }
16398 16399
16399 16400
16400 TEST(PrimaryStubCache) { 16401 TEST(PrimaryStubCache) {
16401 StubCacheHelper(false); 16402 StubCacheHelper(false);
16402 } 16403 }
16403 16404
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