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