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

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

Issue 10053009: Fix compile errors on 64 bit platforms. (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 | « src/heap.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 10851 matching lines...) Expand 10 before | Expand all | Expand 10 after
10862 CHECK(!str.IsEmpty()); 10862 CHECK(!str.IsEmpty());
10863 env->Exit(); 10863 env->Exit();
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 int 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), 0); 10874 CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize), 0l);
10875 } 10875 }
10876 10876
10877 10877
10878 THREADED_TEST(DisposeEnteredContext) { 10878 THREADED_TEST(DisposeEnteredContext) {
10879 v8::HandleScope scope; 10879 v8::HandleScope scope;
10880 LocalContext outer; 10880 LocalContext outer;
10881 { v8::Persistent<v8::Context> inner = v8::Context::New(); 10881 { v8::Persistent<v8::Context> inner = v8::Context::New();
10882 inner->Enter(); 10882 inner->Enter();
10883 inner.Dispose(); 10883 inner.Dispose();
10884 inner.Clear(); 10884 inner.Clear();
(...skipping 5509 matching lines...) Expand 10 before | Expand all | Expand 10 after
16394 16394
16395 TEST(SecondaryStubCache) { 16395 TEST(SecondaryStubCache) {
16396 StubCacheHelper(true); 16396 StubCacheHelper(true);
16397 } 16397 }
16398 16398
16399 16399
16400 TEST(PrimaryStubCache) { 16400 TEST(PrimaryStubCache) {
16401 StubCacheHelper(false); 16401 StubCacheHelper(false);
16402 } 16402 }
16403 16403
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698