OLD | NEW |
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 8227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8238 | 8238 |
8239 | 8239 |
8240 void Isolate::IsolateInBackgroundNotification() { | 8240 void Isolate::IsolateInBackgroundNotification() { |
8241 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8241 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8242 return isolate->IsolateInBackgroundNotification(); | 8242 return isolate->IsolateInBackgroundNotification(); |
8243 } | 8243 } |
8244 | 8244 |
8245 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { | 8245 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { |
8246 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8246 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8247 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this)); | 8247 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this)); |
| 8248 isolate->allocator()->MemoryPressureNotification(level); |
8248 } | 8249 } |
8249 | 8250 |
8250 void Isolate::SetRAILMode(RAILMode rail_mode) { | 8251 void Isolate::SetRAILMode(RAILMode rail_mode) { |
8251 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8252 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8252 return isolate->SetRAILMode(rail_mode); | 8253 return isolate->SetRAILMode(rail_mode); |
8253 } | 8254 } |
8254 | 8255 |
8255 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options, | 8256 void Isolate::SetJitCodeEventHandler(JitCodeEventOptions options, |
8256 JitCodeEventHandler event_handler) { | 8257 JitCodeEventHandler event_handler) { |
8257 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8258 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9375 Address callback_address = | 9376 Address callback_address = |
9376 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 9377 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
9377 VMState<EXTERNAL> state(isolate); | 9378 VMState<EXTERNAL> state(isolate); |
9378 ExternalCallbackScope call_scope(isolate, callback_address); | 9379 ExternalCallbackScope call_scope(isolate, callback_address); |
9379 callback(info); | 9380 callback(info); |
9380 } | 9381 } |
9381 | 9382 |
9382 | 9383 |
9383 } // namespace internal | 9384 } // namespace internal |
9384 } // namespace v8 | 9385 } // namespace v8 |
OLD | NEW |