summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/js-function-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/js-function-inl.h')
-rw-r--r--deps/v8/src/objects/js-function-inl.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/deps/v8/src/objects/js-function-inl.h b/deps/v8/src/objects/js-function-inl.h
index 606deb290a..c937f02311 100644
--- a/deps/v8/src/objects/js-function-inl.h
+++ b/deps/v8/src/objects/js-function-inl.h
@@ -20,6 +20,8 @@
namespace v8 {
namespace internal {
+#include "torque-generated/src/objects/js-function-tq-inl.inc"
+
TQ_OBJECT_CONSTRUCTORS_IMPL(JSFunctionOrBoundFunction)
TQ_OBJECT_CONSTRUCTORS_IMPL(JSBoundFunction)
OBJECT_CONSTRUCTORS_IMPL(JSFunction, JSFunctionOrBoundFunction)
@@ -69,7 +71,8 @@ void JSFunction::MarkForOptimization(ConcurrencyMode mode) {
mode = ConcurrencyMode::kNotConcurrent;
}
- DCHECK(!is_compiled() || ActiveTierIsIgnition() || ActiveTierIsNCI());
+ DCHECK(!is_compiled() || ActiveTierIsIgnition() || ActiveTierIsNCI() ||
+ ActiveTierIsMidtierTurboprop());
DCHECK(!ActiveTierIsTurbofan());
DCHECK(shared().IsInterpreted());
DCHECK(shared().allows_lazy_compilation() ||
@@ -97,8 +100,8 @@ void JSFunction::MarkForOptimization(ConcurrencyMode mode) {
}
bool JSFunction::IsInOptimizationQueue() {
- return has_feedback_vector() && feedback_vector().optimization_marker() ==
- OptimizationMarker::kInOptimizationQueue;
+ if (!has_feedback_vector()) return false;
+ return IsInOptimizationQueueMarker(feedback_vector().optimization_marker());
}
void JSFunction::CompleteInobjectSlackTrackingIfActive() {
@@ -147,20 +150,6 @@ void JSFunction::set_shared(SharedFunctionInfo value, WriteBarrierMode mode) {
CONDITIONAL_WRITE_BARRIER(*this, kSharedFunctionInfoOffset, value, mode);
}
-void JSFunction::ClearOptimizedCodeSlot(const char* reason) {
- if (has_feedback_vector() && feedback_vector().has_optimized_code()) {
- if (FLAG_trace_opt) {
- CodeTracer::Scope scope(GetIsolate()->GetCodeTracer());
- PrintF(scope.file(),
- "[evicting entry from optimizing code feedback slot (%s) for ",
- reason);
- ShortPrint(scope.file());
- PrintF(scope.file(), "]\n");
- }
- feedback_vector().ClearOptimizedCode();
- }
-}
-
void JSFunction::SetOptimizationMarker(OptimizationMarker marker) {
DCHECK(has_feedback_vector());
DCHECK(ChecksOptimizationMarker());