Rename legacy code kinds
CodeKind::OPTIMIZED_CODE -> TURBOFAN Kinds are now more fine-grained and distinguish between TF, TP, NCI. CodeKind::STUB -> DEOPT_ENTRIES_OR_FOR_TESTING Code stubs (like builtins, but generated at runtime) were removed from the codebase years ago, this is the last remnant. This kind is used only for deopt entries (which should be converted into builtins) and for tests. Change-Id: I67beb15377cb60f395e9b051b25f3e5764982e93 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2440335 Auto-Submit: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Mythri Alle <mythria@chromium.org> Reviewed-by: Mythri Alle <mythria@chromium.org> Cr-Commit-Position: refs/heads/master@{#70234}
This commit is contained in:
parent
9c55b1d69d
commit
29bcdaad1d
@ -80,7 +80,7 @@ void OptimizedCompilationInfo::ConfigureFlags() {
|
||||
if (FLAG_untrusted_code_mitigations) set_untrusted_code_mitigations();
|
||||
|
||||
switch (code_kind_) {
|
||||
case CodeKind::OPTIMIZED_FUNCTION:
|
||||
case CodeKind::TURBOFAN:
|
||||
if (FLAG_function_context_specialization) {
|
||||
set_function_context_specializing();
|
||||
}
|
||||
@ -99,7 +99,7 @@ void OptimizedCompilationInfo::ConfigureFlags() {
|
||||
if (FLAG_turbo_splitting) set_splitting();
|
||||
break;
|
||||
case CodeKind::BUILTIN:
|
||||
case CodeKind::STUB:
|
||||
case CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING:
|
||||
if (FLAG_turbo_splitting) set_splitting();
|
||||
#if ENABLE_GDB_JIT_INTERFACE && DEBUG
|
||||
set_source_positions();
|
||||
@ -161,7 +161,7 @@ std::unique_ptr<char[]> OptimizedCompilationInfo::GetDebugName() const {
|
||||
|
||||
StackFrame::Type OptimizedCompilationInfo::GetOutputStackFrameType() const {
|
||||
switch (code_kind()) {
|
||||
case CodeKind::STUB:
|
||||
case CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING:
|
||||
case CodeKind::BYTECODE_HANDLER:
|
||||
case CodeKind::BUILTIN:
|
||||
return StackFrame::STUB;
|
||||
|
@ -149,7 +149,9 @@ class V8_EXPORT_PRIVATE OptimizedCompilationInfo final {
|
||||
bool IsNativeContextIndependent() const {
|
||||
return code_kind() == CodeKind::NATIVE_CONTEXT_INDEPENDENT;
|
||||
}
|
||||
bool IsStub() const { return code_kind() == CodeKind::STUB; }
|
||||
bool IsStub() const {
|
||||
return code_kind() == CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING;
|
||||
}
|
||||
bool IsWasm() const { return code_kind() == CodeKind::WASM_FUNCTION; }
|
||||
|
||||
void SetOptimizingForOsr(BailoutId osr_offset, JavaScriptFrame* osr_frame) {
|
||||
|
@ -85,7 +85,7 @@ class V8_EXPORT_PRIVATE JSHeapBroker {
|
||||
// churn when new flags are added.
|
||||
JSHeapBroker(Isolate* isolate, Zone* broker_zone)
|
||||
: JSHeapBroker(isolate, broker_zone, FLAG_trace_heap_broker, false,
|
||||
CodeKind::OPTIMIZED_FUNCTION) {}
|
||||
CodeKind::TURBOFAN) {}
|
||||
|
||||
~JSHeapBroker();
|
||||
|
||||
|
@ -3224,7 +3224,7 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config,
|
||||
bool use_mid_tier_register_allocator,
|
||||
bool run_verifier) {
|
||||
OptimizedCompilationInfo info(ArrayVector("testing"), sequence->zone(),
|
||||
CodeKind::STUB);
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
ZoneStats zone_stats(sequence->isolate()->allocator());
|
||||
PipelineData data(&zone_stats, &info, sequence->isolate(), sequence);
|
||||
data.InitializeFrameData(nullptr);
|
||||
|
@ -2089,7 +2089,8 @@ void Deoptimizer::EnsureCodeForDeoptimizationEntry(Isolate* isolate,
|
||||
|
||||
// Allocate the code as immovable since the entry addresses will be used
|
||||
// directly and there is no support for relocating them.
|
||||
Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB)
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.set_immovable()
|
||||
.Build();
|
||||
CHECK(isolate->heap()->IsImmovable(*code));
|
||||
|
@ -205,7 +205,7 @@ void PerfJitLogger::LogRecordedBuffer(
|
||||
int length) {
|
||||
if (FLAG_perf_basic_prof_only_functions &&
|
||||
(abstract_code->kind() != CodeKind::INTERPRETED_FUNCTION &&
|
||||
abstract_code->kind() != CodeKind::OPTIMIZED_FUNCTION &&
|
||||
abstract_code->kind() != CodeKind::TURBOFAN &&
|
||||
abstract_code->kind() != CodeKind::NATIVE_CONTEXT_INDEPENDENT &&
|
||||
abstract_code->kind() != CodeKind::TURBOPROP)) {
|
||||
return;
|
||||
|
@ -589,7 +589,7 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator,
|
||||
return OPTIMIZED;
|
||||
}
|
||||
return BUILTIN;
|
||||
case CodeKind::OPTIMIZED_FUNCTION:
|
||||
case CodeKind::TURBOFAN:
|
||||
case CodeKind::NATIVE_CONTEXT_INDEPENDENT:
|
||||
case CodeKind::TURBOPROP:
|
||||
return OPTIMIZED;
|
||||
|
@ -1803,7 +1803,7 @@ Object Isolate::UnwindAndFindHandler() {
|
||||
code.stack_slots() * kSystemPointerSize;
|
||||
|
||||
// TODO(bmeurer): Turbofanned BUILTIN frames appear as OPTIMIZED,
|
||||
// but do not have a code kind of OPTIMIZED_FUNCTION.
|
||||
// but do not have a code kind of TURBOFAN.
|
||||
if (CodeKindCanDeoptimize(code.kind()) &&
|
||||
code.marked_for_deoptimization()) {
|
||||
// If the target code is lazy deoptimized, we jump to the original
|
||||
|
@ -82,7 +82,7 @@ static const char* ComputeMarker(SharedFunctionInfo shared, AbstractCode code) {
|
||||
switch (code.kind()) {
|
||||
case CodeKind::INTERPRETED_FUNCTION:
|
||||
return shared.optimization_disabled() ? "" : "~";
|
||||
case CodeKind::OPTIMIZED_FUNCTION:
|
||||
case CodeKind::TURBOFAN:
|
||||
case CodeKind::NATIVE_CONTEXT_INDEPENDENT:
|
||||
case CodeKind::TURBOPROP:
|
||||
return "*";
|
||||
@ -2164,13 +2164,13 @@ void ExistingCodeLogger::LogCodeObject(Object object) {
|
||||
const char* description = "Unknown code from before profiling";
|
||||
switch (abstract_code->kind()) {
|
||||
case CodeKind::INTERPRETED_FUNCTION:
|
||||
case CodeKind::OPTIMIZED_FUNCTION:
|
||||
case CodeKind::TURBOFAN:
|
||||
case CodeKind::NATIVE_CONTEXT_INDEPENDENT:
|
||||
case CodeKind::TURBOPROP:
|
||||
return; // We log this later using LogCompiledFunctions.
|
||||
case CodeKind::BYTECODE_HANDLER:
|
||||
return; // We log it later by walking the dispatch table.
|
||||
case CodeKind::STUB:
|
||||
case CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING:
|
||||
description = "STUB code";
|
||||
tag = CodeEventListener::STUB_TAG;
|
||||
break;
|
||||
|
@ -11,24 +11,22 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
// TODO(jgruber,rmcilroy): Rename OPTIMIZED_FUNCTION once we've fully
|
||||
// disambiguated Turboprop, Turbofan, and NCI code kinds.
|
||||
// TODO(jgruber): Rename STUB to DEOPT_ENTRIES_OR_FOR_TESTING, or split it into
|
||||
// DEOPT_ENTRIES and FOR_TESTING, or convert DEOPT_ENTRIES into a builtin.
|
||||
#define CODE_KIND_LIST(V) \
|
||||
V(OPTIMIZED_FUNCTION) \
|
||||
V(BYTECODE_HANDLER) \
|
||||
V(STUB) \
|
||||
V(BUILTIN) \
|
||||
V(REGEXP) \
|
||||
V(WASM_FUNCTION) \
|
||||
V(WASM_TO_CAPI_FUNCTION) \
|
||||
V(WASM_TO_JS_FUNCTION) \
|
||||
V(JS_TO_WASM_FUNCTION) \
|
||||
V(JS_TO_JS_FUNCTION) \
|
||||
V(C_WASM_ENTRY) \
|
||||
V(INTERPRETED_FUNCTION) \
|
||||
V(NATIVE_CONTEXT_INDEPENDENT) \
|
||||
// TODO(jgruber): Convert deopt entries to builtins and rename
|
||||
// DEOPT_ENTRIES_OR_FOR_TESTING to FOR_TESTING.
|
||||
#define CODE_KIND_LIST(V) \
|
||||
V(TURBOFAN) \
|
||||
V(BYTECODE_HANDLER) \
|
||||
V(DEOPT_ENTRIES_OR_FOR_TESTING) \
|
||||
V(BUILTIN) \
|
||||
V(REGEXP) \
|
||||
V(WASM_FUNCTION) \
|
||||
V(WASM_TO_CAPI_FUNCTION) \
|
||||
V(WASM_TO_JS_FUNCTION) \
|
||||
V(JS_TO_WASM_FUNCTION) \
|
||||
V(JS_TO_JS_FUNCTION) \
|
||||
V(C_WASM_ENTRY) \
|
||||
V(INTERPRETED_FUNCTION) \
|
||||
V(NATIVE_CONTEXT_INDEPENDENT) \
|
||||
V(TURBOPROP)
|
||||
|
||||
enum class CodeKind {
|
||||
@ -53,7 +51,7 @@ inline constexpr bool CodeKindIsNativeContextIndependentJSFunction(
|
||||
}
|
||||
|
||||
inline constexpr bool CodeKindIsOptimizedJSFunction(CodeKind kind) {
|
||||
return kind == CodeKind::OPTIMIZED_FUNCTION ||
|
||||
return kind == CodeKind::TURBOFAN ||
|
||||
kind == CodeKind::NATIVE_CONTEXT_INDEPENDENT ||
|
||||
kind == CodeKind::TURBOPROP;
|
||||
}
|
||||
@ -75,7 +73,7 @@ inline constexpr bool CodeKindCanDeoptimize(CodeKind kind) {
|
||||
}
|
||||
|
||||
inline constexpr bool CodeKindCanOSR(CodeKind kind) {
|
||||
return kind == CodeKind::OPTIMIZED_FUNCTION || kind == CodeKind::TURBOPROP;
|
||||
return kind == CodeKind::TURBOFAN || kind == CodeKind::TURBOPROP;
|
||||
}
|
||||
|
||||
inline constexpr bool CodeKindChecksOptimizationMarker(CodeKind kind) {
|
||||
@ -88,12 +86,11 @@ inline constexpr bool CodeKindChecksOptimizationMarker(CodeKind kind) {
|
||||
// access from multiple closures. The marker is not used for all code kinds
|
||||
// though, in particular it is not used when generating NCI code.
|
||||
inline constexpr bool CodeKindIsStoredInOptimizedCodeCache(CodeKind kind) {
|
||||
return kind == CodeKind::OPTIMIZED_FUNCTION || kind == CodeKind::TURBOPROP;
|
||||
return kind == CodeKind::TURBOFAN || kind == CodeKind::TURBOPROP;
|
||||
}
|
||||
|
||||
inline CodeKind CodeKindForTopTier() {
|
||||
return V8_UNLIKELY(FLAG_turboprop) ? CodeKind::TURBOPROP
|
||||
: CodeKind::OPTIMIZED_FUNCTION;
|
||||
return V8_UNLIKELY(FLAG_turboprop) ? CodeKind::TURBOPROP : CodeKind::TURBOFAN;
|
||||
}
|
||||
|
||||
// The dedicated CodeKindFlag enum represents all code kinds in a format
|
||||
@ -116,11 +113,11 @@ using CodeKinds = base::Flags<CodeKindFlag>;
|
||||
DEFINE_OPERATORS_FOR_FLAGS(CodeKinds)
|
||||
|
||||
static constexpr CodeKinds kJSFunctionCodeKindsMask{
|
||||
CodeKindFlag::INTERPRETED_FUNCTION | CodeKindFlag::OPTIMIZED_FUNCTION |
|
||||
CodeKindFlag::INTERPRETED_FUNCTION | CodeKindFlag::TURBOFAN |
|
||||
CodeKindFlag::NATIVE_CONTEXT_INDEPENDENT | CodeKindFlag::TURBOPROP};
|
||||
static constexpr CodeKinds kOptimizedJSFunctionCodeKindsMask{
|
||||
CodeKindFlag::OPTIMIZED_FUNCTION |
|
||||
CodeKindFlag::NATIVE_CONTEXT_INDEPENDENT | CodeKindFlag::TURBOPROP};
|
||||
CodeKindFlag::TURBOFAN | CodeKindFlag::NATIVE_CONTEXT_INDEPENDENT |
|
||||
CodeKindFlag::TURBOPROP};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
|
@ -87,8 +87,8 @@ namespace {
|
||||
// otherwise returns true and sets highest_tier.
|
||||
bool HighestTierOf(CodeKinds kinds, CodeKind* highest_tier) {
|
||||
DCHECK_EQ((kinds & ~kJSFunctionCodeKindsMask), 0);
|
||||
if ((kinds & CodeKindFlag::OPTIMIZED_FUNCTION) != 0) {
|
||||
*highest_tier = CodeKind::OPTIMIZED_FUNCTION;
|
||||
if ((kinds & CodeKindFlag::TURBOFAN) != 0) {
|
||||
*highest_tier = CodeKind::TURBOFAN;
|
||||
return true;
|
||||
} else if ((kinds & CodeKindFlag::TURBOPROP) != 0) {
|
||||
*highest_tier = CodeKind::TURBOPROP;
|
||||
@ -122,7 +122,7 @@ bool JSFunction::ActiveTierIsIgnition() const {
|
||||
bool JSFunction::ActiveTierIsTurbofan() const {
|
||||
CodeKind highest_tier;
|
||||
if (!HighestTierOf(GetAvailableCodeKinds(), &highest_tier)) return false;
|
||||
return highest_tier == CodeKind::OPTIMIZED_FUNCTION;
|
||||
return highest_tier == CodeKind::TURBOFAN;
|
||||
}
|
||||
|
||||
bool JSFunction::ActiveTierIsNCI() const {
|
||||
@ -143,7 +143,7 @@ CodeKind JSFunction::NextTier() const {
|
||||
} else if (V8_UNLIKELY(FLAG_turboprop)) {
|
||||
return CodeKind::TURBOPROP;
|
||||
}
|
||||
return CodeKind::OPTIMIZED_FUNCTION;
|
||||
return CodeKind::TURBOFAN;
|
||||
}
|
||||
|
||||
bool JSFunction::CanDiscardCompiled() const {
|
||||
|
@ -86,7 +86,8 @@ bool IsUnexpectedCodeObject(Isolate* isolate, HeapObject obj) {
|
||||
Code code = Code::cast(obj);
|
||||
|
||||
// TODO(v8:8768): Deopt entry code should not be serialized.
|
||||
if (code.kind() == CodeKind::STUB && isolate->deoptimizer_data() != nullptr) {
|
||||
if (code.kind() == CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING &&
|
||||
isolate->deoptimizer_data() != nullptr) {
|
||||
if (isolate->deoptimizer_data()->IsDeoptEntryCode(code)) return false;
|
||||
}
|
||||
|
||||
|
@ -21,8 +21,9 @@ Handle<Code> AssembleCodeImpl(std::function<void(MacroAssembler&)> assemble) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
if (FLAG_print_code) {
|
||||
code->Print();
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ i::Handle<i::JSFunction> Optimize(
|
||||
CHECK_NOT_NULL(zone);
|
||||
|
||||
i::OptimizedCompilationInfo info(zone, isolate, shared, function,
|
||||
i::CodeKind::OPTIMIZED_FUNCTION);
|
||||
i::CodeKind::TURBOFAN);
|
||||
|
||||
if (flags & i::OptimizedCompilationInfo::kInlining) {
|
||||
info.set_inlining();
|
||||
|
@ -22,7 +22,8 @@ class CodeAssemblerTester {
|
||||
explicit CodeAssemblerTester(Isolate* isolate, const char* name = "test")
|
||||
: zone_(isolate->allocator(), ZONE_NAME, kCompressGraphZone),
|
||||
scope_(isolate),
|
||||
state_(isolate, &zone_, VoidDescriptor{}, CodeKind::STUB, name,
|
||||
state_(isolate, &zone_, VoidDescriptor{},
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, name,
|
||||
PoisoningMitigationLevel::kDontPoison) {}
|
||||
|
||||
// Test generating code for a JS function (e.g. builtins).
|
||||
@ -45,7 +46,8 @@ class CodeAssemblerTester {
|
||||
const char* name = "test")
|
||||
: zone_(isolate->allocator(), ZONE_NAME, kCompressGraphZone),
|
||||
scope_(isolate),
|
||||
state_(isolate, &zone_, call_descriptor, CodeKind::STUB, name,
|
||||
state_(isolate, &zone_, call_descriptor,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, name,
|
||||
PoisoningMitigationLevel::kDontPoison, Builtins::kNoBuiltinId) {}
|
||||
|
||||
CodeAssemblerState* state() { return &state_; }
|
||||
|
@ -91,7 +91,7 @@ class RawMachineAssemblerTester : public HandleAndZoneScope,
|
||||
}
|
||||
|
||||
private:
|
||||
CodeKind kind_ = CodeKind::STUB;
|
||||
CodeKind kind_ = CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING;
|
||||
MaybeHandle<Code> code_;
|
||||
};
|
||||
|
||||
|
@ -151,7 +151,7 @@ Handle<JSFunction> FunctionTester::CompileGraph(Graph* graph) {
|
||||
Handle<SharedFunctionInfo> shared(function->shared(), isolate);
|
||||
Zone zone(isolate->allocator(), ZONE_NAME);
|
||||
OptimizedCompilationInfo info(&zone, isolate, shared, function,
|
||||
CodeKind::OPTIMIZED_FUNCTION);
|
||||
CodeKind::TURBOFAN);
|
||||
|
||||
auto call_descriptor = Linkage::ComputeIncoming(&zone, &info);
|
||||
Handle<Code> code =
|
||||
|
@ -964,10 +964,11 @@ class CodeGeneratorTester {
|
||||
explicit CodeGeneratorTester(TestEnvironment* environment,
|
||||
int extra_stack_space = 0)
|
||||
: zone_(environment->main_zone()),
|
||||
info_(ArrayVector("test"), environment->main_zone(), CodeKind::STUB),
|
||||
info_(ArrayVector("test"), environment->main_zone(),
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING),
|
||||
linkage_(environment->test_descriptor()),
|
||||
frame_(environment->test_descriptor()->CalculateFixedFrameSize(
|
||||
CodeKind::STUB)) {
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)) {
|
||||
// Pick half of the stack parameters at random and move them into spill
|
||||
// slots, separated by `extra_stack_space` bytes.
|
||||
// When testing a move with stack slots using CheckAssembleMove or
|
||||
|
@ -49,7 +49,7 @@ TEST(TestLinkageCreate) {
|
||||
Handle<JSFunction> function = Compile("a + b");
|
||||
Handle<SharedFunctionInfo> shared(function->shared(), handles.main_isolate());
|
||||
OptimizedCompilationInfo info(handles.main_zone(), function->GetIsolate(),
|
||||
shared, function, CodeKind::OPTIMIZED_FUNCTION);
|
||||
shared, function, CodeKind::TURBOFAN);
|
||||
auto call_descriptor = Linkage::ComputeIncoming(info.zone(), &info);
|
||||
CHECK(call_descriptor);
|
||||
}
|
||||
@ -67,8 +67,7 @@ TEST(TestLinkageJSFunctionIncoming) {
|
||||
Handle<SharedFunctionInfo> shared(function->shared(),
|
||||
handles.main_isolate());
|
||||
OptimizedCompilationInfo info(handles.main_zone(), function->GetIsolate(),
|
||||
shared, function,
|
||||
CodeKind::OPTIMIZED_FUNCTION);
|
||||
shared, function, CodeKind::TURBOFAN);
|
||||
auto call_descriptor = Linkage::ComputeIncoming(info.zone(), &info);
|
||||
CHECK(call_descriptor);
|
||||
|
||||
@ -85,7 +84,7 @@ TEST(TestLinkageJSCall) {
|
||||
Handle<JSFunction> function = Compile("a + c");
|
||||
Handle<SharedFunctionInfo> shared(function->shared(), handles.main_isolate());
|
||||
OptimizedCompilationInfo info(handles.main_zone(), function->GetIsolate(),
|
||||
shared, function, CodeKind::OPTIMIZED_FUNCTION);
|
||||
shared, function, CodeKind::TURBOFAN);
|
||||
|
||||
for (int i = 0; i < 32; i++) {
|
||||
auto call_descriptor = Linkage::GetJSCallDescriptor(
|
||||
@ -109,7 +108,8 @@ TEST(TestLinkageStubCall) {
|
||||
Isolate* isolate = CcTest::InitIsolateOnce();
|
||||
Zone zone(isolate->allocator(), ZONE_NAME);
|
||||
Callable callable = Builtins::CallableFor(isolate, Builtins::kToNumber);
|
||||
OptimizedCompilationInfo info(ArrayVector("test"), &zone, CodeKind::STUB);
|
||||
OptimizedCompilationInfo info(ArrayVector("test"), &zone,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
auto call_descriptor = Linkage::GetStubCallDescriptor(
|
||||
&zone, callable.descriptor(), 0, CallDescriptor::kNoFlags,
|
||||
Operator::kNoProperties);
|
||||
@ -129,7 +129,8 @@ TEST(TestFPLinkageStubCall) {
|
||||
Zone zone(isolate->allocator(), ZONE_NAME);
|
||||
Callable callable =
|
||||
Builtins::CallableFor(isolate, Builtins::kWasmFloat64ToNumber);
|
||||
OptimizedCompilationInfo info(ArrayVector("test"), &zone, CodeKind::STUB);
|
||||
OptimizedCompilationInfo info(ArrayVector("test"), &zone,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
auto call_descriptor = Linkage::GetStubCallDescriptor(
|
||||
&zone, callable.descriptor(), 0, CallDescriptor::kNoFlags,
|
||||
Operator::kNoProperties);
|
||||
|
@ -123,7 +123,7 @@ class BytecodeGraphTester {
|
||||
Zone zone(isolate_->allocator(), ZONE_NAME);
|
||||
Handle<SharedFunctionInfo> shared(function->shared(), isolate_);
|
||||
OptimizedCompilationInfo compilation_info(&zone, isolate_, shared, function,
|
||||
CodeKind::OPTIMIZED_FUNCTION);
|
||||
CodeKind::TURBOFAN);
|
||||
|
||||
// Compiler relies on canonicalized handles, let's create
|
||||
// a canonicalized scope and migrate existing handles there.
|
||||
|
@ -246,7 +246,7 @@ Handle<Code> CompileGraph(const char* name, CallDescriptor* call_descriptor,
|
||||
Graph* graph, Schedule* schedule = nullptr) {
|
||||
Isolate* isolate = CcTest::InitIsolateOnce();
|
||||
OptimizedCompilationInfo info(ArrayVector("testing"), graph->zone(),
|
||||
CodeKind::STUB);
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
Handle<Code> code = Pipeline::GenerateCodeForTesting(
|
||||
&info, isolate, call_descriptor, graph,
|
||||
AssemblerOptions::Default(isolate), schedule)
|
||||
|
@ -365,7 +365,9 @@ UNINITIALIZED_TEST(ConcurrentRecordRelocSlot) {
|
||||
CodeDesc desc;
|
||||
masm.GetCode(i_isolate, &desc);
|
||||
Handle<Code> code_handle =
|
||||
Factory::CodeBuilder(i_isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(i_isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
heap::AbandonCurrentlyFreeMemory(heap->old_space());
|
||||
Handle<HeapNumber> value_handle(
|
||||
i_isolate->factory()->NewHeapNumber<AllocationType::kOld>(1.1));
|
||||
|
@ -206,8 +206,9 @@ HEAP_TEST(TestNewSpaceRefsInCopiedCode) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
Handle<Code> copy;
|
||||
{
|
||||
@ -230,8 +231,9 @@ static void CheckFindCodeObject(Isolate* isolate) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
|
||||
HeapObject obj = HeapObject::cast(*code);
|
||||
@ -242,8 +244,9 @@ static void CheckFindCodeObject(Isolate* isolate) {
|
||||
CHECK_EQ(*code, found);
|
||||
}
|
||||
|
||||
Handle<Code> copy =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> copy = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
HeapObject obj_copy = HeapObject::cast(*copy);
|
||||
Object not_right =
|
||||
isolate->FindCodeObject(obj_copy.address() + obj_copy.Size() / 2);
|
||||
@ -4490,10 +4493,9 @@ static Handle<Code> DummyOptimizedCode(Isolate* isolate) {
|
||||
masm.Push(isolate->factory()->undefined_value());
|
||||
masm.Drop(2);
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::OPTIMIZED_FUNCTION)
|
||||
.set_self_reference(masm.CodeObject())
|
||||
.Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::TURBOFAN)
|
||||
.set_self_reference(masm.CodeObject())
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
return code;
|
||||
}
|
||||
@ -6534,7 +6536,8 @@ Handle<Code> GenerateDummyImmovableCode(Isolate* isolate) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB)
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.set_immovable()
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
@ -7259,8 +7262,9 @@ TEST(Regress10900) {
|
||||
masm.Push(ReadOnlyRoots(heap).undefined_value_handle());
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
{
|
||||
// Generate multiple code pages.
|
||||
CodeSpaceMemoryModificationScope modification_scope(isolate->heap());
|
||||
|
@ -51,7 +51,9 @@ TEST(WeakReferencesBasic) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
|
||||
lh->set_data1(HeapObjectReference::Weak(*code));
|
||||
|
@ -204,7 +204,8 @@ TEST(TryProbeStubCache) {
|
||||
|
||||
// Generate some number of handlers.
|
||||
for (int i = 0; i < 30; i++) {
|
||||
handlers.push_back(CreateCodeOfKind(CodeKind::STUB));
|
||||
handlers.push_back(
|
||||
CreateCodeOfKind(CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING));
|
||||
}
|
||||
|
||||
// Ensure that GC does happen because from now on we are going to fill our
|
||||
|
@ -60,8 +60,9 @@ TEST(0) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -96,8 +97,9 @@ TEST(1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -141,8 +143,9 @@ TEST(2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -187,8 +190,9 @@ TEST(3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -318,7 +322,9 @@ TEST(4) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -380,7 +386,9 @@ TEST(5) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -410,8 +418,9 @@ TEST(6) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -477,8 +486,9 @@ static void TestRoundingMode(VCVTTypes types,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -659,8 +669,9 @@ TEST(8) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -768,8 +779,9 @@ TEST(9) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -873,8 +885,9 @@ TEST(10) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -967,8 +980,9 @@ TEST(11) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1093,7 +1107,9 @@ TEST(13) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1164,8 +1180,9 @@ TEST(14) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2045,7 +2062,9 @@ TEST(15) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2320,8 +2339,9 @@ TEST(16) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2399,7 +2419,9 @@ TEST(sdiv) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2459,7 +2481,9 @@ TEST(udiv) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2487,8 +2511,9 @@ TEST(smmla) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2512,8 +2537,9 @@ TEST(smmul) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2537,8 +2563,9 @@ TEST(sxtb) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2562,8 +2589,9 @@ TEST(sxtab) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2587,8 +2615,9 @@ TEST(sxth) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2612,8 +2641,9 @@ TEST(sxtah) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2637,8 +2667,9 @@ TEST(uxtb) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2662,8 +2693,9 @@ TEST(uxtab) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2687,8 +2719,9 @@ TEST(uxth) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2712,8 +2745,9 @@ TEST(uxtah) {
|
||||
__ bx(lr);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2754,7 +2788,9 @@ TEST(rbit) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
@ -2834,7 +2870,8 @@ TEST(code_relative_offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB)
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.set_self_reference(code_object)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F_iiiii>::FromCode(*code);
|
||||
@ -2874,8 +2911,9 @@ TEST(msr_mrs) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2972,7 +3010,9 @@ TEST(ARMv8_float32_vrintX) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3073,7 +3113,9 @@ TEST(ARMv8_vrintX) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3210,7 +3252,9 @@ TEST(ARMv8_vsel) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3301,7 +3345,9 @@ TEST(ARMv8_vminmax_f64) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3381,7 +3427,9 @@ TEST(ARMv8_vminmax_f32) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3514,7 +3562,9 @@ static GeneratedCode<F_ppiii> GenerateMacroFloatMinMax(
|
||||
CodeDesc desc;
|
||||
assm.GetCode(assm.isolate(), &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(assm.isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(assm.isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3676,8 +3726,9 @@ TEST(unaligned_loads) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3719,8 +3770,9 @@ TEST(unaligned_stores) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -3819,8 +3871,9 @@ TEST(vswp) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -4032,7 +4085,9 @@ TEST(split_add_immediate) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -4052,7 +4107,9 @@ TEST(split_add_immediate) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -4075,7 +4132,9 @@ TEST(split_add_immediate) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -166,7 +166,9 @@ static void InitializeVM() {
|
||||
{ \
|
||||
CodeDesc desc; \
|
||||
__ GetCode(masm.isolate(), &desc); \
|
||||
code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build(); \
|
||||
code = Factory::CodeBuilder(isolate, desc, \
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING) \
|
||||
.Build(); \
|
||||
if (FLAG_print_code) code->Print(); \
|
||||
}
|
||||
|
||||
@ -211,7 +213,9 @@ static void InitializeVM() {
|
||||
{ \
|
||||
CodeDesc desc; \
|
||||
__ GetCode(masm.isolate(), &desc); \
|
||||
code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build(); \
|
||||
code = Factory::CodeBuilder(isolate, desc, \
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING) \
|
||||
.Build(); \
|
||||
if (FLAG_print_code) code->Print(); \
|
||||
}
|
||||
|
||||
@ -14880,7 +14884,8 @@ TEST(pool_size) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
code = Factory::CodeBuilder(isolate, desc, CodeKind::STUB)
|
||||
code = Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.set_self_reference(masm.CodeObject())
|
||||
.Build();
|
||||
|
||||
|
@ -62,8 +62,9 @@ TEST(AssemblerIa320) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -100,8 +101,9 @@ TEST(AssemblerIa321) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -142,8 +144,9 @@ TEST(AssemblerIa322) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -171,8 +174,9 @@ TEST(AssemblerIa323) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -200,8 +204,9 @@ TEST(AssemblerIa324) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -228,8 +233,9 @@ TEST(AssemblerIa325) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
F0 f = FUNCTION_CAST<F0>(code->entry());
|
||||
int res = f();
|
||||
CHECK_EQ(42, res);
|
||||
@ -261,8 +267,9 @@ TEST(AssemblerIa326) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -293,8 +300,9 @@ TEST(AssemblerIa328) {
|
||||
__ ret(0);
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -376,8 +384,9 @@ TEST(AssemblerMultiByteNop) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
|
||||
F0 f = FUNCTION_CAST<F0>(code->entry());
|
||||
@ -427,8 +436,9 @@ void DoSSE2(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
F0 f = FUNCTION_CAST<F0>(code->entry());
|
||||
int res = f();
|
||||
@ -492,8 +502,9 @@ TEST(AssemblerIa32Extractps) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -531,8 +542,9 @@ TEST(AssemblerIa32SSE) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -564,8 +576,9 @@ TEST(AssemblerIa32SSE3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -792,8 +805,9 @@ TEST(AssemblerX64FMA_sd) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1020,8 +1034,9 @@ TEST(AssemblerX64FMA_ss) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1128,8 +1143,9 @@ TEST(AssemblerIa32BMI1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1176,8 +1192,9 @@ TEST(AssemblerIa32LZCNT) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1224,8 +1241,9 @@ TEST(AssemblerIa32POPCNT) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1370,8 +1388,9 @@ TEST(AssemblerIa32BMI2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1414,8 +1433,9 @@ TEST(AssemblerIa32JumpTables1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1462,8 +1482,9 @@ TEST(AssemblerIa32JumpTables2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1505,8 +1526,9 @@ TEST(Regress621926) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
|
@ -64,8 +64,9 @@ TEST(MIPS0) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
int res = reinterpret_cast<int>(f.Call(0xAB0, 0xC, 0, 0, 0));
|
||||
CHECK_EQ(static_cast<int32_t>(0xABC), res);
|
||||
@ -99,8 +100,9 @@ TEST(MIPS1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F1>::FromCode(*code);
|
||||
int res = reinterpret_cast<int>(f.Call(50, 0, 0, 0, 0));
|
||||
CHECK_EQ(1275, res);
|
||||
@ -236,8 +238,9 @@ TEST(MIPS2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
int res = reinterpret_cast<int>(f.Call(0xAB0, 0xC, 0, 0, 0));
|
||||
CHECK_EQ(static_cast<int32_t>(0x31415926), res);
|
||||
@ -336,8 +339,9 @@ TEST(MIPS3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
// Double test values.
|
||||
t.a = 1.5e14;
|
||||
@ -438,8 +442,9 @@ TEST(MIPS4) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.a = 1.5e22;
|
||||
t.b = 2.75e11;
|
||||
@ -499,8 +504,9 @@ TEST(MIPS5) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.a = 1.5e4;
|
||||
t.b = 2.75e8;
|
||||
@ -567,8 +573,9 @@ TEST(MIPS6) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.ui = 0x11223344;
|
||||
t.si = 0x99AABBCC;
|
||||
@ -659,8 +666,9 @@ TEST(MIPS7) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.a = 1.5e14;
|
||||
t.b = 2.75e11;
|
||||
@ -756,7 +764,9 @@ TEST(MIPS8) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.input = 0x12345678;
|
||||
f.Call(&t, 0x0, 0, 0, 0);
|
||||
@ -800,8 +810,9 @@ TEST(MIPS9) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
USE(code);
|
||||
}
|
||||
|
||||
@ -851,8 +862,9 @@ TEST(MIPS10) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.a = 2.147483646e+09; // 0x7FFFFFFE -> 0xFF80000041DFFFFF as double.
|
||||
t.b_word = 0x0FF00FF0; // 0x0FF00FF0 -> 0x as double.
|
||||
@ -978,8 +990,9 @@ TEST(MIPS11) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.reg_init = 0xAABBCCDD;
|
||||
t.mem_init = 0x11223344;
|
||||
@ -1103,8 +1116,9 @@ TEST(MIPS12) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.x = 1;
|
||||
t.y = 2;
|
||||
@ -1156,8 +1170,9 @@ TEST(MIPS13) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
t.cvt_big_in = 0xFFFFFFFF;
|
||||
@ -1276,8 +1291,9 @@ TEST(MIPS14) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
t.round_up_in = 123.51;
|
||||
@ -1381,7 +1397,9 @@ TEST(seleqz_selnez) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
(f.Call(&test, 0, 0, 0, 0));
|
||||
@ -1495,7 +1513,9 @@ TEST(min_max) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputsa[i];
|
||||
@ -1605,7 +1625,9 @@ TEST(rint_d) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
for (int j = 0; j < 4; j++) {
|
||||
@ -1652,7 +1674,9 @@ TEST(sel) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
const int test_size = 3;
|
||||
@ -1784,7 +1808,9 @@ TEST(rint_s) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
for (int j = 0; j < 4; j++) {
|
||||
@ -1827,8 +1853,9 @@ TEST(Cvt_d_uw) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.input = inputs[i];
|
||||
@ -1909,7 +1936,9 @@ TEST(mina_maxa) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputsa[i];
|
||||
@ -1989,7 +2018,9 @@ TEST(trunc_l) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2069,7 +2100,9 @@ TEST(movz_movn) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2170,7 +2203,9 @@ TEST(movt_movd) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
(f.Call(&test, 0, 0, 0, 0));
|
||||
@ -2254,8 +2289,9 @@ TEST(cvt_w_d) {
|
||||
Test test;
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int j = 0; j < 4; j++) {
|
||||
test.fcsr = fcsr_inputs[j];
|
||||
@ -2321,8 +2357,9 @@ TEST(trunc_w) {
|
||||
Test test;
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2390,8 +2427,9 @@ TEST(round_w) {
|
||||
Test test;
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2462,7 +2500,9 @@ TEST(round_l) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2534,8 +2574,9 @@ TEST(sub) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputfs_S[i];
|
||||
@ -2613,8 +2654,9 @@ TEST(sqrt_rsqrt_recip) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
@ -2693,8 +2735,9 @@ TEST(neg) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_S[i];
|
||||
@ -2750,8 +2793,9 @@ TEST(mul) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputfs_S[i];
|
||||
@ -2806,8 +2850,9 @@ TEST(mov) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2873,8 +2918,9 @@ TEST(floor_w) {
|
||||
Test test;
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -2945,7 +2991,9 @@ TEST(floor_l) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -3016,8 +3064,9 @@ TEST(ceil_w) {
|
||||
Test test;
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -3088,7 +3137,9 @@ TEST(ceil_l) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputs_D[i];
|
||||
@ -3155,8 +3206,9 @@ TEST(jump_tables1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -3220,8 +3272,9 @@ TEST(jump_tables2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -3292,8 +3345,9 @@ TEST(jump_tables3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -3344,7 +3398,9 @@ TEST(BITSWAP) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.r1 = 0x781A15C3;
|
||||
t.r2 = 0x8B71FCDE;
|
||||
@ -3478,7 +3534,9 @@ TEST(class_fmt) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
t.dSignalingNan = std::numeric_limits<double>::signaling_NaN();
|
||||
@ -3568,8 +3626,9 @@ TEST(ABS) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
test.a = -2.0;
|
||||
test.b = -2.0;
|
||||
@ -3661,8 +3720,9 @@ TEST(ADD_FMT) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
test.a = 2.0;
|
||||
test.b = 3.0;
|
||||
@ -3816,7 +3876,9 @@ TEST(C_COND_FMT) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
test.dOp1 = 2.0;
|
||||
test.dOp2 = 3.0;
|
||||
@ -4016,7 +4078,9 @@ TEST(CMP_COND_FMT) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
uint64_t dTrue = 0xFFFFFFFFFFFFFFFF;
|
||||
uint64_t dFalse = 0x0000000000000000;
|
||||
@ -4201,8 +4265,9 @@ TEST(CVT) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
test.cvt_d_s_in = -0.51;
|
||||
@ -4413,8 +4478,9 @@ TEST(DIV_FMT) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
@ -4505,8 +4571,9 @@ uint32_t run_align(uint32_t rs_value, uint32_t rt_value, uint8_t bp) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -4560,8 +4627,9 @@ uint32_t run_aluipc(int16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
PC = (uint32_t)code->entry(); // Set the program counter.
|
||||
@ -4613,8 +4681,9 @@ uint32_t run_auipc(int16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
PC = (uint32_t)code->entry(); // Set the program counter.
|
||||
@ -4688,8 +4757,9 @@ uint32_t run_lwpc(int offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -4768,8 +4838,9 @@ uint32_t run_jic(int16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -4839,8 +4910,9 @@ uint64_t run_beqzc(int32_t value, int32_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -4945,8 +5017,9 @@ void run_bz_bnz(TestCaseMsaBranch* input, Branch GenerateBranch,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -5115,8 +5188,9 @@ uint32_t run_jialc(int16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -5163,8 +5237,9 @@ static uint32_t run_addiupc(int32_t imm19) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
PC = (uint32_t)code->entry(); // Set the program counter.
|
||||
@ -5245,8 +5320,9 @@ int32_t run_bc(int32_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -5326,8 +5402,9 @@ int32_t run_balc(int32_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -5350,8 +5427,9 @@ uint32_t run_aui(uint32_t rs, uint16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -5439,8 +5517,9 @@ uint32_t run_bal(int16_t offset) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
@ -5491,8 +5570,9 @@ TEST(Trampoline) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
int32_t res = reinterpret_cast<int32_t>(f.Call(42, 42, 0, 0, 0));
|
||||
@ -5618,8 +5698,9 @@ void helper_madd_msub_maddf_msubf(F func) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
const size_t kTableLength = sizeof(test_cases) / sizeof(TestCaseMaddMsub<T>);
|
||||
@ -5703,8 +5784,9 @@ uint32_t run_Subu(uint32_t imm, int32_t num_instr) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
uint32_t res = reinterpret_cast<uint32_t>(f.Call(0, 0, 0, 0, 0));
|
||||
@ -5807,8 +5889,9 @@ TEST(MSA_fill_copy) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -5875,8 +5958,9 @@ TEST(MSA_fill_copy_2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -5932,8 +6016,9 @@ TEST(MSA_fill_copy_3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -5977,8 +6062,9 @@ void run_msa_insert(int32_t rs_value, int n, msa_reg_t* w) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -6078,7 +6164,9 @@ TEST(MSA_move_v) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -6123,7 +6211,9 @@ void run_msa_sldi(OperFunc GenerateOperation,
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -6207,8 +6297,9 @@ void run_msa_ctc_cfc(uint32_t value) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -6317,8 +6408,9 @@ void run_msa_i8(SecondaryField opcode, uint64_t ws_lo, uint64_t ws_hi,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -6495,8 +6587,9 @@ uint32_t run_Ins(uint32_t imm, uint32_t source, uint16_t pos, uint16_t size) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
uint32_t res = reinterpret_cast<uint32_t>(f.Call(0, 0, 0, 0, 0));
|
||||
@ -6545,8 +6638,9 @@ uint32_t run_Ext(uint32_t source, uint16_t pos, uint16_t size) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F2>::FromCode(*code);
|
||||
|
||||
uint32_t res = reinterpret_cast<uint32_t>(f.Call(0, 0, 0, 0, 0));
|
||||
@ -6607,8 +6701,9 @@ void run_msa_i5(struct TestCaseMsaI5* input, bool i5_sign_ext,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -7027,8 +7122,9 @@ void run_msa_2r(const struct TestCaseMsa2R* input,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -8077,8 +8173,9 @@ void run_msa_vector(struct TestCaseMsaVector* input,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -8165,8 +8262,9 @@ void run_msa_bit(struct TestCaseMsaBit* input, InstFunc GenerateInstructionFunc,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -8638,8 +8736,9 @@ void run_msa_i10(int32_t input, InstFunc GenerateVectorInstructionFunc,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -8716,8 +8815,9 @@ void run_msa_mi10(InstFunc GenerateVectorInstructionFunc) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -8795,8 +8895,9 @@ void run_msa_3r(struct TestCaseMsa3R* input, InstFunc GenerateI5InstructionFunc,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -9801,8 +9902,9 @@ void run_msa_3rf(const struct TestCaseMsa3RF* input,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -60,8 +60,9 @@ TEST(0) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -96,8 +97,9 @@ TEST(1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -144,8 +146,9 @@ TEST(2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -213,8 +216,9 @@ TEST(3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -327,7 +331,7 @@ TEST(4) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -387,7 +391,7 @@ TEST(5) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -422,7 +426,7 @@ TEST(6) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -497,7 +501,7 @@ static void TestRoundingMode(VCVTTypes types,
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -684,7 +688,7 @@ TEST(8) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -799,7 +803,7 @@ TEST(9) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -910,7 +914,7 @@ TEST(10) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
@ -1007,7 +1011,7 @@ TEST(11) {
|
||||
assm.GetCode(isolate, &desc);
|
||||
Object code = isolate->heap()->CreateCode(
|
||||
desc,
|
||||
CodeKind::STUB,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING,
|
||||
Handle<Code>())->ToObjectChecked();
|
||||
CHECK(code->IsCode());
|
||||
#ifdef DEBUG
|
||||
|
@ -63,8 +63,9 @@ TEST(0) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -102,8 +103,9 @@ TEST(1) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -153,8 +155,9 @@ TEST(2) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -208,8 +211,9 @@ TEST(3) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -250,7 +254,7 @@ TEST(4) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -278,7 +282,7 @@ TEST(5) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -312,7 +316,7 @@ TEST(6) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -344,7 +348,7 @@ TEST(7) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -375,7 +379,7 @@ TEST(8) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -402,7 +406,7 @@ TEST(9) {
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code = isolate->factory()->NewCode(
|
||||
desc, CodeKind::STUB, Handle<Code>());
|
||||
desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, Handle<Code>());
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -486,8 +490,9 @@ TEST(10) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -540,8 +545,9 @@ TEST(11) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -594,8 +600,9 @@ TEST(12) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -658,8 +665,9 @@ TEST(13) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -749,8 +757,9 @@ TEST(14) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -839,8 +848,9 @@ TEST(15) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -886,8 +896,9 @@ TEST(16) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -960,8 +971,9 @@ TEST(17) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
@ -1052,8 +1064,9 @@ TEST(18) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
code->Print();
|
||||
#endif
|
||||
|
@ -743,8 +743,9 @@ TEST(AssemblerMultiByteNop) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F0>::FromCode(*code);
|
||||
int res = f.Call();
|
||||
@ -800,8 +801,9 @@ void DoSSE2(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F0>::FromCode(*code);
|
||||
int res = f.Call();
|
||||
@ -865,8 +867,9 @@ TEST(AssemblerX64Extractps) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -902,8 +905,9 @@ TEST(AssemblerX64SSE) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -933,8 +937,9 @@ TEST(AssemblerX64SSE3) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1158,8 +1163,9 @@ TEST(AssemblerX64FMA_sd) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1384,8 +1390,9 @@ TEST(AssemblerX64FMA_ss) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1460,8 +1467,9 @@ TEST(AssemblerX64SSE_ss) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1546,8 +1554,9 @@ TEST(AssemblerX64AVX_ss) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1786,8 +1795,9 @@ TEST(AssemblerX64AVX_sd) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1978,8 +1988,9 @@ TEST(AssemblerX64BMI1) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2038,8 +2049,9 @@ TEST(AssemblerX64LZCNT) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2098,8 +2110,9 @@ TEST(AssemblerX64POPCNT) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2361,8 +2374,9 @@ TEST(AssemblerX64BMI2) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -2405,8 +2419,9 @@ TEST(AssemblerX64JumpTables1) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2453,8 +2468,9 @@ TEST(AssemblerX64JumpTables2) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -2510,8 +2526,9 @@ TEST(AssemblerX64vmovups) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -40,7 +40,8 @@ TEST(CodeLayoutWithoutUnwindingInfo) {
|
||||
code_desc.origin = nullptr;
|
||||
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(CcTest::i_isolate(), code_desc, CodeKind::STUB)
|
||||
Factory::CodeBuilder(CcTest::i_isolate(), code_desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
CHECK(!code->has_unwinding_info());
|
||||
@ -87,7 +88,8 @@ TEST(CodeLayoutWithUnwindingInfo) {
|
||||
code_desc.origin = nullptr;
|
||||
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(CcTest::i_isolate(), code_desc, CodeKind::STUB)
|
||||
Factory::CodeBuilder(CcTest::i_isolate(), code_desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
CHECK(code->has_unwinding_info());
|
||||
|
@ -988,8 +988,9 @@ TEST(DisasmIa320) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
USE(code);
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
|
@ -983,8 +983,9 @@ TEST(DisasmX64) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
USE(code);
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
|
@ -585,7 +585,7 @@ Handle<Code> CreateDummyOptimizedCode(Isolate* isolate) {
|
||||
desc.buffer = buffer;
|
||||
desc.buffer_size = arraysize(buffer);
|
||||
desc.instr_size = arraysize(buffer);
|
||||
return Factory::CodeBuilder(isolate, desc, CodeKind::OPTIMIZED_FUNCTION)
|
||||
return Factory::CodeBuilder(isolate, desc, CodeKind::TURBOFAN)
|
||||
.set_is_turbofanned()
|
||||
.Build();
|
||||
}
|
||||
|
@ -4068,7 +4068,9 @@ TEST(WeakReference) {
|
||||
i::CodeDesc desc;
|
||||
assm.GetCode(i_isolate, &desc);
|
||||
i::Handle<i::Code> code =
|
||||
i::Factory::CodeBuilder(i_isolate, desc, i::CodeKind::STUB).Build();
|
||||
i::Factory::CodeBuilder(i_isolate, desc,
|
||||
i::CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
CHECK(code->IsCode());
|
||||
|
||||
fv->set_optimized_code_weak_or_smi(i::HeapObjectReference::Weak(*code));
|
||||
|
@ -146,8 +146,9 @@ TEST(ExtractLane) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -277,8 +278,9 @@ TEST(ReplaceLane) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -65,8 +65,9 @@ TEST(EmbeddedObj) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -88,8 +88,9 @@ TEST(BYTESWAP) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
for (size_t i = 0; i < arraysize(test_values); i++) {
|
||||
@ -198,8 +199,9 @@ TEST(jump_tables4) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -261,8 +263,9 @@ TEST(jump_tables5) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -349,8 +352,9 @@ TEST(jump_tables6) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -374,8 +378,9 @@ static uint32_t run_lsa(uint32_t rt, uint32_t rs, int8_t sa) {
|
||||
|
||||
CodeDesc desc;
|
||||
assembler.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F1>::FromCode(*code);
|
||||
|
||||
@ -502,8 +507,9 @@ RET_TYPE run_Cvt(IN_TYPE x, Func GenerateConvertInstructionFunc) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
|
||||
@ -615,7 +621,9 @@ TEST(OverflowInstructions) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.lhs = ii;
|
||||
t.rhs = jj;
|
||||
@ -737,8 +745,9 @@ TEST(min_max_nan) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputsa[i];
|
||||
@ -772,8 +781,9 @@ bool run_Unaligned(char* memory_buffer, int32_t in_offset, int32_t out_offset,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
|
||||
@ -1019,8 +1029,9 @@ bool run_Sltu(uint32_t rs, uint32_t rd, Func GenerateSltuInstructionFunc) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
int32_t res = reinterpret_cast<int32_t>(f.Call(rs, rd, 0, 0, 0));
|
||||
@ -1114,7 +1125,9 @@ static GeneratedCode<F4> GenerateMacroFloat32MinMax(MacroAssembler* masm) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(masm->isolate(), &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(masm->isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(masm->isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1255,7 +1268,9 @@ static GeneratedCode<F4> GenerateMacroFloat64MinMax(MacroAssembler* masm) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(masm->isolate(), &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(masm->isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(masm->isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -108,8 +108,9 @@ TEST(BYTESWAP) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
|
||||
for (size_t i = 0; i < arraysize(test_values); i++) {
|
||||
@ -163,8 +164,9 @@ TEST(LoadConstants) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<FV>::FromCode(*code);
|
||||
(void)f.Call(reinterpret_cast<int64_t>(result), 0, 0, 0, 0);
|
||||
@ -206,8 +208,9 @@ TEST(LoadAddress) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<FV>::FromCode(*code);
|
||||
(void)f.Call(0, 0, 0, 0, 0);
|
||||
@ -263,8 +266,9 @@ TEST(jump_tables4) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -333,8 +337,9 @@ TEST(jump_tables5) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -422,8 +427,9 @@ TEST(jump_tables6) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
code->Print(std::cout);
|
||||
#endif
|
||||
@ -447,8 +453,9 @@ static uint64_t run_lsa(uint32_t rt, uint32_t rs, int8_t sa) {
|
||||
|
||||
CodeDesc desc;
|
||||
assembler.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F1>::FromCode(*code);
|
||||
|
||||
@ -527,8 +534,9 @@ static uint64_t run_dlsa(uint64_t rt, uint64_t rs, int8_t sa) {
|
||||
|
||||
CodeDesc desc;
|
||||
assembler.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<FV>::FromCode(*code);
|
||||
|
||||
@ -677,8 +685,9 @@ RET_TYPE run_Cvt(IN_TYPE x, Func GenerateConvertInstructionFunc) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
|
||||
@ -853,7 +862,9 @@ TEST(OverflowInstructions) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate, desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
t.lhs = ii;
|
||||
t.rhs = jj;
|
||||
@ -975,8 +986,9 @@ TEST(min_max_nan) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
auto f = GeneratedCode<F3>::FromCode(*code);
|
||||
for (int i = 0; i < kTableLength; i++) {
|
||||
test.a = inputsa[i];
|
||||
@ -1010,8 +1022,9 @@ bool run_Unaligned(char* memory_buffer, int32_t in_offset, int32_t out_offset,
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
|
||||
@ -1374,8 +1387,9 @@ bool run_Sltu(uint64_t rs, uint64_t rd, Func GenerateSltuInstructionFunc) {
|
||||
|
||||
CodeDesc desc;
|
||||
assm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
auto f = GeneratedCode<F_CVT>::FromCode(*code);
|
||||
int64_t res = reinterpret_cast<int64_t>(f.Call(rs, rd, 0, 0, 0));
|
||||
@ -1469,7 +1483,9 @@ static GeneratedCode<F4> GenerateMacroFloat32MinMax(MacroAssembler* masm) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(masm->isolate(), &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(masm->isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(masm->isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
@ -1610,7 +1626,9 @@ static GeneratedCode<F4> GenerateMacroFloat64MinMax(MacroAssembler* masm) {
|
||||
CodeDesc desc;
|
||||
masm->GetCode(masm->isolate(), &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(masm->isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(masm->isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef DEBUG
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -449,8 +449,9 @@ TEST(EmbeddedObj) {
|
||||
|
||||
CodeDesc desc;
|
||||
masm->GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
#ifdef OBJECT_PRINT
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
|
@ -204,8 +204,9 @@ void TestInvalidateExclusiveAccess(TestData initial_data, MemoryAccess access1,
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
|
||||
TestData t = initial_data;
|
||||
Simulator::current(isolate)->Call<void>(code->entry(), &t);
|
||||
@ -276,8 +277,9 @@ int ExecuteMemoryAccess(Isolate* isolate, TestData* test_data,
|
||||
|
||||
CodeDesc desc;
|
||||
masm.GetCode(isolate, &desc);
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate, desc, CodeKind::STUB).Build();
|
||||
Handle<Code> code = Factory::CodeBuilder(
|
||||
isolate, desc, CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
Simulator::current(isolate)->Call<void>(code->entry(), test_data);
|
||||
return Simulator::current(isolate)->wreg(0);
|
||||
}
|
||||
|
@ -239,7 +239,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
}
|
||||
callee.Return(static_cast<int>(desc->ReturnCount()), returns.get());
|
||||
|
||||
OptimizedCompilationInfo info(ArrayVector("testing"), &zone, CodeKind::STUB);
|
||||
OptimizedCompilationInfo info(ArrayVector("testing"), &zone,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
Handle<Code> code =
|
||||
Pipeline::GenerateCodeForTesting(&info, i_isolate, desc, callee.graph(),
|
||||
AssemblerOptions::Default(i_isolate),
|
||||
@ -285,7 +286,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
|
||||
// Call the wrapper.
|
||||
OptimizedCompilationInfo wrapper_info(ArrayVector("wrapper"), &zone,
|
||||
CodeKind::STUB);
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING);
|
||||
Handle<Code> wrapper_code =
|
||||
Pipeline::GenerateCodeForTesting(
|
||||
&wrapper_info, i_isolate, wrapper_desc, caller.graph(),
|
||||
|
@ -155,7 +155,9 @@ TEST_P(TurboAssemblerTestMoveObjectAndSlot, MoveObjectAndSlot) {
|
||||
tasm.GetCode(nullptr, &desc);
|
||||
if (FLAG_print_code) {
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ TEST_P(TurboAssemblerTestMoveObjectAndSlot, MoveObjectAndSlot) {
|
||||
tasm.GetCode(nullptr, &desc);
|
||||
if (FLAG_print_code) {
|
||||
Handle<Code> code =
|
||||
Factory::CodeBuilder(isolate(), desc, CodeKind::STUB).Build();
|
||||
Factory::CodeBuilder(isolate(), desc,
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING)
|
||||
.Build();
|
||||
StdoutStream os;
|
||||
code->Print(os);
|
||||
}
|
||||
|
@ -23,8 +23,9 @@ namespace internal {
|
||||
CodeStubAssemblerTestState::CodeStubAssemblerTestState(
|
||||
CodeStubAssemblerTest* test)
|
||||
: compiler::CodeAssemblerState(
|
||||
test->isolate(), test->zone(), VoidDescriptor{}, CodeKind::STUB,
|
||||
"test", PoisoningMitigationLevel::kPoisonCriticalOnly) {}
|
||||
test->isolate(), test->zone(), VoidDescriptor{},
|
||||
CodeKind::DEOPT_ENTRIES_OR_FOR_TESTING, "test",
|
||||
PoisoningMitigationLevel::kPoisonCriticalOnly) {}
|
||||
|
||||
TARGET_TEST_F(CodeStubAssemblerTest, SmiTag) {
|
||||
CodeStubAssemblerTestState state(this);
|
||||
|
@ -31,7 +31,7 @@ class BlockingCompilationJob : public OptimizedCompilationJob {
|
||||
State::kReadyToExecute),
|
||||
shared_(function->shared(), isolate),
|
||||
zone_(isolate->allocator(), ZONE_NAME),
|
||||
info_(&zone_, isolate, shared_, function, CodeKind::OPTIMIZED_FUNCTION),
|
||||
info_(&zone_, isolate, shared_, function, CodeKind::TURBOFAN),
|
||||
blocking_(false),
|
||||
semaphore_(0) {}
|
||||
~BlockingCompilationJob() override = default;
|
||||
|
Loading…
Reference in New Issue
Block a user