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

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

Issue 251103003: Remove unnecessary includes of v8 headers from platform files (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 7 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-linux.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include <stdarg.h> 52 #include <stdarg.h>
53 #include <stdlib.h> 53 #include <stdlib.h>
54 #include <string.h> 54 #include <string.h>
55 #include <errno.h> 55 #include <errno.h>
56 56
57 #undef MAP_TYPE 57 #undef MAP_TYPE
58 58
59 #include "v8.h" 59 #include "v8.h"
60 60
61 #include "platform.h" 61 #include "platform.h"
62 #include "simulator.h"
63 #include "vm-state-inl.h"
64 62
65 63
66 namespace v8 { 64 namespace v8 {
67 namespace internal { 65 namespace internal {
68 66
69 67
70 // Constants used for mmap. 68 // Constants used for mmap.
71 // kMmapFd is used to pass vm_alloc flags to tag the region with the user 69 // kMmapFd is used to pass vm_alloc flags to tag the region with the user
72 // defined tag 255 This helps identify V8-allocated regions in memory analysis 70 // defined tag 255 This helps identify V8-allocated regions in memory analysis
73 // tools like vmmap(1). 71 // tools like vmmap(1).
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { 324 bool VirtualMemory::ReleaseRegion(void* address, size_t size) {
327 return munmap(address, size) == 0; 325 return munmap(address, size) == 0;
328 } 326 }
329 327
330 328
331 bool VirtualMemory::HasLazyCommits() { 329 bool VirtualMemory::HasLazyCommits() {
332 return false; 330 return false;
333 } 331 }
334 332
335 } } // namespace v8::internal 333 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-linux.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698