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 11 matching lines...) Expand all Loading... |
22 #include "src/assert-scope.h" | 22 #include "src/assert-scope.h" |
23 #include "src/background-parsing-task.h" | 23 #include "src/background-parsing-task.h" |
24 #include "src/base/functional.h" | 24 #include "src/base/functional.h" |
25 #include "src/base/platform/platform.h" | 25 #include "src/base/platform/platform.h" |
26 #include "src/base/platform/time.h" | 26 #include "src/base/platform/time.h" |
27 #include "src/base/safe_conversions.h" | 27 #include "src/base/safe_conversions.h" |
28 #include "src/base/utils/random-number-generator.h" | 28 #include "src/base/utils/random-number-generator.h" |
29 #include "src/bootstrapper.h" | 29 #include "src/bootstrapper.h" |
30 #include "src/char-predicates-inl.h" | 30 #include "src/char-predicates-inl.h" |
31 #include "src/code-stubs.h" | 31 #include "src/code-stubs.h" |
| 32 #include "src/compiler-dispatcher/compiler-dispatcher.h" |
32 #include "src/compiler.h" | 33 #include "src/compiler.h" |
33 #include "src/context-measure.h" | 34 #include "src/context-measure.h" |
34 #include "src/contexts.h" | 35 #include "src/contexts.h" |
35 #include "src/conversions-inl.h" | 36 #include "src/conversions-inl.h" |
36 #include "src/counters.h" | 37 #include "src/counters.h" |
37 #include "src/debug/debug.h" | 38 #include "src/debug/debug.h" |
38 #include "src/deoptimizer.h" | 39 #include "src/deoptimizer.h" |
39 #include "src/execution.h" | 40 #include "src/execution.h" |
40 #include "src/frames-inl.h" | 41 #include "src/frames-inl.h" |
41 #include "src/gdb-jit.h" | 42 #include "src/gdb-jit.h" |
(...skipping 8420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8462 | 8463 |
8463 void Isolate::IsolateInBackgroundNotification() { | 8464 void Isolate::IsolateInBackgroundNotification() { |
8464 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8465 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8465 return isolate->IsolateInBackgroundNotification(); | 8466 return isolate->IsolateInBackgroundNotification(); |
8466 } | 8467 } |
8467 | 8468 |
8468 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { | 8469 void Isolate::MemoryPressureNotification(MemoryPressureLevel level) { |
8469 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8470 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8470 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this)); | 8471 isolate->heap()->MemoryPressureNotification(level, Locker::IsLocked(this)); |
8471 isolate->allocator()->MemoryPressureNotification(level); | 8472 isolate->allocator()->MemoryPressureNotification(level); |
| 8473 isolate->compiler_dispatcher()->MemoryPressureNotification( |
| 8474 level, Locker::IsLocked(this)); |
8472 } | 8475 } |
8473 | 8476 |
8474 void Isolate::SetRAILMode(RAILMode rail_mode) { | 8477 void Isolate::SetRAILMode(RAILMode rail_mode) { |
8475 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8478 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8476 return isolate->SetRAILMode(rail_mode); | 8479 return isolate->SetRAILMode(rail_mode); |
8477 } | 8480 } |
8478 | 8481 |
8479 void Isolate::IncreaseHeapLimitForDebugging() { | 8482 void Isolate::IncreaseHeapLimitForDebugging() { |
8480 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); | 8483 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
8481 isolate->heap()->IncreaseHeapLimitForDebugging(); | 8484 isolate->heap()->IncreaseHeapLimitForDebugging(); |
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9966 Address callback_address = | 9969 Address callback_address = |
9967 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 9970 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
9968 VMState<EXTERNAL> state(isolate); | 9971 VMState<EXTERNAL> state(isolate); |
9969 ExternalCallbackScope call_scope(isolate, callback_address); | 9972 ExternalCallbackScope call_scope(isolate, callback_address); |
9970 callback(info); | 9973 callback(info); |
9971 } | 9974 } |
9972 | 9975 |
9973 | 9976 |
9974 } // namespace internal | 9977 } // namespace internal |
9975 } // namespace v8 | 9978 } // namespace v8 |
OLD | NEW |