[interpreter][stubs] Don't modify FLAG_csa_verify flag to make TSAN happy.
BUG= Review-Url: https://codereview.chromium.org/2568173002 Cr-Commit-Position: refs/heads/master@{#41653}
This commit is contained in:
parent
257793e3f5
commit
769442a1b8
@ -108,14 +108,7 @@ Code* BuildWithCodeStubAssemblerCS(Isolate* isolate,
|
||||
DCHECK_LE(0, descriptor.GetRegisterParameterCount());
|
||||
compiler::CodeAssemblerState state(isolate, &zone, descriptor, flags, name);
|
||||
generator(&state);
|
||||
|
||||
// TODO(ishell): remove this when code stub assembler graphs verification
|
||||
// is enabled for all stubs.
|
||||
bool saved_csa_verify = FLAG_csa_verify;
|
||||
// Enable verification only in mksnapshot.
|
||||
FLAG_csa_verify = DEBUG_BOOL && FLAG_startup_blob != nullptr;
|
||||
Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state);
|
||||
FLAG_csa_verify = saved_csa_verify;
|
||||
PostBuildProfileAndTracing(isolate, *code, name);
|
||||
return *code;
|
||||
}
|
||||
|
@ -437,15 +437,7 @@ Handle<Code> TurboFanCodeStub::GenerateCode() {
|
||||
compiler::CodeAssemblerState state(isolate(), &zone, descriptor,
|
||||
GetCodeFlags(), name);
|
||||
GenerateAssembly(&state);
|
||||
|
||||
// TODO(ishell): remove this when code stub assembler graphs verification
|
||||
// is enabled for all stubs.
|
||||
bool saved_csa_verify = FLAG_csa_verify;
|
||||
// Enable verification only in mksnapshot.
|
||||
FLAG_csa_verify = DEBUG_BOOL && FLAG_startup_blob != nullptr;
|
||||
Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state);
|
||||
FLAG_csa_verify = saved_csa_verify;
|
||||
return code;
|
||||
return compiler::CodeAssembler::GenerateCode(&state);
|
||||
}
|
||||
|
||||
#define ACCESSOR_ASSEMBLER(Name) \
|
||||
|
@ -98,12 +98,6 @@ void Interpreter::InstallBytecodeHandler(Zone* zone, Bytecode bytecode,
|
||||
BytecodeGeneratorFunc generator) {
|
||||
if (!Bytecodes::BytecodeHasHandler(bytecode, operand_scale)) return;
|
||||
|
||||
// TODO(ishell): remove this when code stub assembler graphs verification
|
||||
// is enabled for all stubs.
|
||||
bool sav_csa_verify = FLAG_csa_verify;
|
||||
// Enable verification only in mksnapshot.
|
||||
FLAG_csa_verify = DEBUG_BOOL && FLAG_startup_blob != nullptr;
|
||||
|
||||
InterpreterDispatchDescriptor descriptor(isolate_);
|
||||
compiler::CodeAssemblerState state(
|
||||
isolate_, zone, descriptor, Code::ComputeFlags(Code::BYTECODE_HANDLER),
|
||||
@ -118,7 +112,6 @@ void Interpreter::InstallBytecodeHandler(Zone* zone, Bytecode bytecode,
|
||||
CodeEventListener::BYTECODE_HANDLER_TAG,
|
||||
AbstractCode::cast(*code),
|
||||
Bytecodes::ToString(bytecode, operand_scale).c_str()));
|
||||
FLAG_csa_verify = sav_csa_verify;
|
||||
}
|
||||
|
||||
Code* Interpreter::GetBytecodeHandler(Bytecode bytecode,
|
||||
|
Loading…
Reference in New Issue
Block a user