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

Side by Side Diff: src/platform-nullos.cc

Issue 14162004: Unified the structure of VirtualMemory implementations across platforms a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/platform-macos.cc ('k') | src/platform-openbsd.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 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 UNIMPLEMENTED(); 310 UNIMPLEMENTED();
311 } 311 }
312 312
313 313
314 int OS::StackWalk(Vector<OS::StackFrame> frames) { 314 int OS::StackWalk(Vector<OS::StackFrame> frames) {
315 UNIMPLEMENTED(); 315 UNIMPLEMENTED();
316 return 0; 316 return 0;
317 } 317 }
318 318
319 319
320 VirtualMemory::VirtualMemory() {
321 UNIMPLEMENTED();
322 }
323
324
325 VirtualMemory::VirtualMemory(size_t size) {
326 UNIMPLEMENTED();
327 }
328
329
320 VirtualMemory::VirtualMemory(size_t size, void* address_hint) { 330 VirtualMemory::VirtualMemory(size_t size, void* address_hint) {
321 UNIMPLEMENTED(); 331 UNIMPLEMENTED();
322 } 332 }
323 333
324 334
325 VirtualMemory::~VirtualMemory() { 335 VirtualMemory::~VirtualMemory() {
326 UNIMPLEMENTED(); 336 UNIMPLEMENTED();
327 } 337 }
328 338
329 339
330 bool VirtualMemory::IsReserved() { 340 bool VirtualMemory::IsReserved() {
331 UNIMPLEMENTED(); 341 UNIMPLEMENTED();
332 return false; 342 return false;
333 } 343 }
334 344
335 345
346 void VirtualMemory::Reset() {
347 UNIMPLEMENTED();
348 }
349
350
336 bool VirtualMemory::Commit(void* address, size_t size, bool executable) { 351 bool VirtualMemory::Commit(void* address, size_t size, bool executable) {
337 UNIMPLEMENTED(); 352 UNIMPLEMENTED();
338 return false; 353 return false;
339 } 354 }
340 355
341 356
342 bool VirtualMemory::Uncommit(void* address, size_t size) { 357 bool VirtualMemory::Uncommit(void* address, size_t size) {
343 UNIMPLEMENTED(); 358 UNIMPLEMENTED();
344 return false; 359 return false;
345 } 360 }
346 361
347 362
348 bool VirtualMemory::Guard(void* address) { 363 bool VirtualMemory::Guard(void* address) {
349 UNIMPLEMENTED(); 364 UNIMPLEMENTED();
350 return false; 365 return false;
351 } 366 }
352 367
353 368
369 void* VirtualMemory::ReserveRegion(size_t size) {
370 UNIMPLEMENTED();
371 return NULL;
372 }
373
374
375 bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
376 UNIMPLEMENTED();
377 return false;
378 }
379
380
381 bool VirtualMemory::UncommitRegion(void* base, size_t size) {
382 UNIMPLEMENTED();
383 return false;
384 }
385
386
387 bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
388 UNIMPLEMENTED();
389 return false;
390 }
391
392
354 bool VirtualMemory::HasLazyCommits() { 393 bool VirtualMemory::HasLazyCommits() {
355 // TODO(alph): implement for the platform. 394 // TODO(alph): implement for the platform.
356 return false; 395 return false;
357 } 396 }
358 397
359 398
360 class Thread::PlatformData : public Malloced { 399 class Thread::PlatformData : public Malloced {
361 public: 400 public:
362 PlatformData() { 401 PlatformData() {
363 UNIMPLEMENTED(); 402 UNIMPLEMENTED();
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 UNIMPLEMENTED(); 559 UNIMPLEMENTED();
521 } 560 }
522 561
523 562
524 void ProfileSampler::Stop() { 563 void ProfileSampler::Stop() {
525 UNIMPLEMENTED(); 564 UNIMPLEMENTED();
526 } 565 }
527 566
528 567
529 } } // namespace v8::internal 568 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698