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

Side by Side Diff: src/api.cc

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Renamed defines to match new file locations Created 4 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
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 8180 matching lines...) Expand 10 before | Expand all | Expand 10 after
8191 } 8191 }
8192 8192
8193 8193
8194 void Isolate::IsolateInBackgroundNotification() { 8194 void Isolate::IsolateInBackgroundNotification() {
8195 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8195 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8196 return isolate->IsolateInBackgroundNotification(); 8196 return isolate->IsolateInBackgroundNotification();
8197 } 8197 }
8198 8198
8199 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { 8199 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) {
8200 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8200 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8201 return isolate->heap()->MemoryPressureNotification(level, 8201 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this));
8202 Locker::IsLocked(this));
8203 } 8202 }
8204 8203
8205 void Isolate::SetRAILMode(RAILMode rail_mode) { 8204 void Isolate::SetRAILMode(RAILMode rail_mode) {
8206 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8205 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8207 return isolate->SetRAILMode(rail_mode); 8206 return isolate->SetRAILMode(rail_mode);
8208 } 8207 }
8209 8208
8210 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options, 8209 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options,
8211 JitCodeEventHandler event_handler) { 8210 JitCodeEventHandler event_handler) {
8212 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8211 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
9330 Address callback_address = 9329 Address callback_address =
9331 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9330 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9332 VMState<EXTERNAL> state(isolate); 9331 VMState<EXTERNAL> state(isolate);
9333 ExternalCallbackScope call_scope(isolate, callback_address); 9332 ExternalCallbackScope call_scope(isolate, callback_address);
9334 callback(info); 9333 callback(info);
9335 } 9334 }
9336 9335
9337 9336
9338 } // namespace internal 9337 } // namespace internal
9339 } // namespace v8 9338 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/asmjs/asm-typer.h » ('j') | src/compiler/live-range-separator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698