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/api.cc

Issue 2335343007: Pool implementation for zone segments (Closed)
Patch Set: Fixed windows build Created 4 years, 2 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 | « no previous file | src/isolate.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 8268 matching lines...) Expand 10 before | Expand all | Expand 10 after
8279 8279
8280 8280
8281 void Isolate::IsolateInBackgroundNotification() { 8281 void Isolate::IsolateInBackgroundNotification() {
8282 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8282 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8283 return isolate->IsolateInBackgroundNotification(); 8283 return isolate->IsolateInBackgroundNotification();
8284 } 8284 }
8285 8285
8286 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { 8286 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) {
8287 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8287 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8288 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this)); 8288 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this));
8289 isolate->allocator()->MemoryPressureNotification(level);
8289 } 8290 }
8290 8291
8291 void Isolate::SetRAILMode(RAILMode rail_mode) { 8292 void Isolate::SetRAILMode(RAILMode rail_mode) {
8292 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8293 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8293 return isolate->SetRAILMode(rail_mode); 8294 return isolate->SetRAILMode(rail_mode);
8294 } 8295 }
8295 8296
8296 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options, 8297 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options,
8297 JitCodeEventHandler event_handler) { 8298 JitCodeEventHandler event_handler) {
8298 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8299 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
9416 Address callback_address = 9417 Address callback_address =
9417 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9418 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9418 VMState<EXTERNAL> state(isolate); 9419 VMState<EXTERNAL> state(isolate);
9419 ExternalCallbackScope call_scope(isolate, callback_address); 9420 ExternalCallbackScope call_scope(isolate, callback_address);
9420 callback(info); 9421 callback(info);
9421 } 9422 }
9422 9423
9423 9424
9424 } // namespace internal 9425 } // namespace internal
9425 } // namespace v8 9426 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698