Commit 2c7876a2 authored by Toon Verwaest's avatar Toon Verwaest Committed by V8 LUCI CQ

[interpreter] Delete some dead code

Leftover from removing interpreter intrinsics.

Change-Id: I848c3ebd0706cb85126d5d7c3d5a6c97d97414b2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3015555Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75646}
parent c0fd89c3
...@@ -34,14 +34,6 @@ class IntrinsicsGenerator { ...@@ -34,14 +34,6 @@ class IntrinsicsGenerator {
const InterpreterAssembler::RegListNodePair& args); const InterpreterAssembler::RegListNodePair& args);
private: private:
enum InstanceTypeCompareMode {
kInstanceTypeEqual,
kInstanceTypeGreaterThanOrEqual
};
TNode<Oddball> IsInstanceType(TNode<Object> input, int type);
TNode<BoolT> CompareInstanceType(TNode<HeapObject> map, int type,
InstanceTypeCompareMode mode);
TNode<Object> IntrinsicAsBuiltinCall( TNode<Object> IntrinsicAsBuiltinCall(
const InterpreterAssembler::RegListNodePair& args, TNode<Context> context, const InterpreterAssembler::RegListNodePair& args, TNode<Context> context,
Builtin name, int arg_count); Builtin name, int arg_count);
...@@ -118,29 +110,6 @@ TNode<Object> IntrinsicsGenerator::InvokeIntrinsic( ...@@ -118,29 +110,6 @@ TNode<Object> IntrinsicsGenerator::InvokeIntrinsic(
return result.value(); return result.value();
} }
TNode<BoolT> IntrinsicsGenerator::CompareInstanceType(
TNode<HeapObject> object, int type, InstanceTypeCompareMode mode) {
TNode<Uint16T> instance_type = __ LoadInstanceType(object);
if (mode == kInstanceTypeEqual) {
return __ Word32Equal(instance_type, __ Int32Constant(type));
} else {
DCHECK_EQ(mode, kInstanceTypeGreaterThanOrEqual);
return __ Int32GreaterThanOrEqual(instance_type, __ Int32Constant(type));
}
}
TNode<Oddball> IntrinsicsGenerator::IsInstanceType(TNode<Object> input,
int type) {
TNode<Oddball> result = __ Select<Oddball>(
__ TaggedIsSmi(input), [=] { return __ FalseConstant(); },
[=] {
return __ SelectBooleanConstant(
CompareInstanceType(__ CAST(input), type, kInstanceTypeEqual));
});
return result;
}
TNode<Object> IntrinsicsGenerator::IntrinsicAsBuiltinCall( TNode<Object> IntrinsicsGenerator::IntrinsicAsBuiltinCall(
const InterpreterAssembler::RegListNodePair& args, TNode<Context> context, const InterpreterAssembler::RegListNodePair& args, TNode<Context> context,
Builtin name, int arg_count) { Builtin name, int arg_count) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment