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

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

Issue 1208933006: Atomics Futex API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: TODO about busy-waiting Created 5 years, 5 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
« no previous file with comments | « src/runtime/runtime-futex.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 if (current->dependency() != NULL) { 130 if (current->dependency() != NULL) {
131 printf("%s/%s<%s\n", 131 printf("%s/%s<%s\n",
132 current->file(), current->name(), current->dependency()); 132 current->file(), current->name(), current->dependency());
133 } else { 133 } else {
134 printf("%s/%s<\n", current->file(), current->name()); 134 printf("%s/%s<\n", current->file(), current->name());
135 } 135 }
136 } 136 }
137 137
138 138
139 class CcTestArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 139 class CcTestArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
140 virtual void* Allocate(size_t length) { return malloc(length); } 140 virtual void* Allocate(size_t length) {
141 void* data = AllocateUninitialized(length);
142 return data == NULL ? data : memset(data, 0, length);
143 }
141 virtual void* AllocateUninitialized(size_t length) { return malloc(length); } 144 virtual void* AllocateUninitialized(size_t length) { return malloc(length); }
142 virtual void Free(void* data, size_t length) { free(data); } 145 virtual void Free(void* data, size_t length) { free(data); }
143 // TODO(dslomov): Remove when v8:2823 is fixed. 146 // TODO(dslomov): Remove when v8:2823 is fixed.
144 virtual void Free(void* data) { UNREACHABLE(); } 147 virtual void Free(void* data) { UNREACHABLE(); }
145 }; 148 };
146 149
147 150
148 static void SuggestTestHarness(int tests) { 151 static void SuggestTestHarness(int tests) {
149 if (tests == 0) return; 152 if (tests == 0) return;
150 printf("Running multiple tests in sequence is deprecated and may cause " 153 printf("Running multiple tests in sequence is deprecated and may cause "
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 CcTest::TearDown(); 241 CcTest::TearDown();
239 // TODO(svenpanne) See comment above. 242 // TODO(svenpanne) See comment above.
240 // if (!disable_automatic_dispose_) v8::V8::Dispose(); 243 // if (!disable_automatic_dispose_) v8::V8::Dispose();
241 v8::V8::ShutdownPlatform(); 244 v8::V8::ShutdownPlatform();
242 delete platform; 245 delete platform;
243 return 0; 246 return 0;
244 } 247 }
245 248
246 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL; 249 RegisterThreadedTest *RegisterThreadedTest::first_ = NULL;
247 int RegisterThreadedTest::count_ = 0; 250 int RegisterThreadedTest::count_ = 0;
OLDNEW
« no previous file with comments | « src/runtime/runtime-futex.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698