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

Side by Side Diff: src/api.cc

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Merge branch 'master' into zonefolder 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
« no previous file with comments | « BUILD.gn ('k') | src/asmjs/asm-typer.h » ('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 8222 matching lines...) Expand 10 before | Expand all | Expand 10 after
8233 } 8233 }
8234 8234
8235 8235
8236 void Isolate::IsolateInBackgroundNotification() { 8236 void Isolate::IsolateInBackgroundNotification() {
8237 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8237 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8238 return isolate->IsolateInBackgroundNotification(); 8238 return isolate->IsolateInBackgroundNotification();
8239 } 8239 }
8240 8240
8241 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { 8241 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) {
8242 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8242 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8243 return isolate->heap()->MemoryPressureNotification(level, 8243 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this));
8244 Locker::IsLocked(this));
8245 } 8244 }
8246 8245
8247 void Isolate::SetRAILMode(RAILMode rail_mode) { 8246 void Isolate::SetRAILMode(RAILMode rail_mode) {
8248 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8247 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
8249 return isolate->SetRAILMode(rail_mode); 8248 return isolate->SetRAILMode(rail_mode);
8250 } 8249 }
8251 8250
8252 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options, 8251 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options,
8253 JitCodeEventHandler event_handler) { 8252 JitCodeEventHandler event_handler) {
8254 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); 8253 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
9372 Address callback_address = 9371 Address callback_address =
9373 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9372 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9374 VMState<EXTERNAL> state(isolate); 9373 VMState<EXTERNAL> state(isolate);
9375 ExternalCallbackScope call_scope(isolate, callback_address); 9374 ExternalCallbackScope call_scope(isolate, callback_address);
9376 callback(info); 9375 callback(info);
9377 } 9376 }
9378 9377
9379 9378
9380 } // namespace internal 9379 } // namespace internal
9381 } // namespace v8 9380 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/asmjs/asm-typer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698