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

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

Issue 23480067: remove ISOLATE (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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-cygwin.cc ('k') | src/platform-linux.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 83
84 void* OS::Allocate(const size_t requested, 84 void* OS::Allocate(const size_t requested,
85 size_t* allocated, 85 size_t* allocated,
86 bool executable) { 86 bool executable) {
87 const size_t msize = RoundUp(requested, getpagesize()); 87 const size_t msize = RoundUp(requested, getpagesize());
88 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); 88 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0);
89 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0); 89 void* mbase = mmap(NULL, msize, prot, MAP_PRIVATE | MAP_ANON, -1, 0);
90 90
91 if (mbase == MAP_FAILED) { 91 if (mbase == MAP_FAILED) {
92 LOG(ISOLATE, StringEvent("OS::Allocate", "mmap failed")); 92 LOG(Isolate::Current(), StringEvent("OS::Allocate", "mmap failed"));
93 return NULL; 93 return NULL;
94 } 94 }
95 *allocated = msize; 95 *allocated = msize;
96 return mbase; 96 return mbase;
97 } 97 }
98 98
99 99
100 void OS::DumpBacktrace() { 100 void OS::DumpBacktrace() {
101 POSIXBacktraceHelper<backtrace, backtrace_symbols>::DumpBacktrace(); 101 POSIXBacktraceHelper<backtrace, backtrace_symbols>::DumpBacktrace();
102 } 102 }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return munmap(base, size) == 0; 334 return munmap(base, size) == 0;
335 } 335 }
336 336
337 337
338 bool VirtualMemory::HasLazyCommits() { 338 bool VirtualMemory::HasLazyCommits() {
339 // TODO(alph): implement for the platform. 339 // TODO(alph): implement for the platform.
340 return false; 340 return false;
341 } 341 }
342 342
343 } } // namespace v8::internal 343 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-cygwin.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698