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

Side by Side Diff: src/v8.cc

Issue 23903008: Drop OS::IsOutsideAllocatedSpace() and move the tracking to the MemoryAllocator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix invalid calculation of committed memory boundaries. 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/spaces.cc ('k') | test/cctest/test-alloc.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ExternalReference::TearDownMathExpData(); 105 ExternalReference::TearDownMathExpData();
106 RegisteredExtension::UnregisterAll(); 106 RegisteredExtension::UnregisterAll();
107 Isolate::GlobalTearDown(); 107 Isolate::GlobalTearDown();
108 108
109 has_been_disposed_ = true; 109 has_been_disposed_ = true;
110 110
111 delete call_completed_callbacks_; 111 delete call_completed_callbacks_;
112 call_completed_callbacks_ = NULL; 112 call_completed_callbacks_ = NULL;
113 113
114 Sampler::TearDown(); 114 Sampler::TearDown();
115 OS::TearDown();
116 } 115 }
117 116
118 117
119 static void seed_random(uint32_t* state) { 118 static void seed_random(uint32_t* state) {
120 for (int i = 0; i < 2; ++i) { 119 for (int i = 0; i < 2; ++i) {
121 if (FLAG_random_seed != 0) { 120 if (FLAG_random_seed != 0) {
122 state[i] = FLAG_random_seed; 121 state[i] = FLAG_random_seed;
123 } else if (entropy_source != NULL) { 122 } else if (entropy_source != NULL) {
124 uint32_t val; 123 uint32_t val;
125 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); 124 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer());
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 ExternalReference::SetUp(); 301 ExternalReference::SetUp();
303 Bootstrapper::InitializeOncePerProcess(); 302 Bootstrapper::InitializeOncePerProcess();
304 } 303 }
305 304
306 305
307 void V8::InitializeOncePerProcess() { 306 void V8::InitializeOncePerProcess() {
308 CallOnce(&init_once, &InitializeOncePerProcessImpl); 307 CallOnce(&init_once, &InitializeOncePerProcessImpl);
309 } 308 }
310 309
311 } } // namespace v8::internal 310 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | test/cctest/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698