[macro-assembler] Remove unused predicate generating_stub().

R=jarin@chromium.org,bmeurer@chromium.org

Bug: 
Change-Id: I6f4e56f37987d2ae67eed91401b10dcc26397970
Reviewed-on: https://chromium-review.googlesource.com/558086
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46404}
This commit is contained in:
Georg Neis 2017-06-30 14:45:55 +02:00 committed by Commit Bot
parent b78511bd4e
commit 381e66716a
17 changed files with 0 additions and 40 deletions

View File

@ -26,7 +26,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
isolate_(isolate),
jit_cookie_(0) {

View File

@ -1120,9 +1120,6 @@ class MacroAssembler: public Assembler {
// Print a message to stdout and abort execution.
void Abort(BailoutReason msg);
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1367,7 +1364,6 @@ class MacroAssembler: public Assembler {
template <typename T>
void FloatMinOutOfLineHelper(T result, T left, T right);
bool generating_stub_;
bool has_frame_;
Isolate* isolate_;
// This handle will be patched with the code object on installation.

View File

@ -28,7 +28,6 @@ MacroAssembler::MacroAssembler(Isolate* isolate, byte* buffer,
unsigned buffer_size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, buffer_size),
generating_stub_(false),
#if DEBUG
allow_macro_instructions_(true),
#endif

View File

@ -1838,8 +1838,6 @@ class MacroAssembler : public Assembler {
// ---- Code generation helpers ----
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() const { return generating_stub_; }
#if DEBUG
void set_allow_macro_instructions(bool value) {
allow_macro_instructions_ = value;
@ -2504,7 +2502,6 @@ class MacroAssembler : public Assembler {
Label* on_successful_conversion = NULL,
Label* on_failed_conversion = NULL);
bool generating_stub_;
#if DEBUG
// Tell whether any of the macro instruction can be used. When false the
// MacroAssembler will assert if a method which can emit a variable number

View File

@ -137,7 +137,6 @@ Handle<Code> PlatformCodeStub::GenerateCode() {
isolate()->counters()->code_stubs()->Increment();
// Generate the code for the stub.
masm.set_generating_stub(true);
// TODO(yangguo): remove this once we can serialize IC stubs.
masm.enable_serializer();
NoCurrentFrameScope scope(&masm);

View File

@ -24,7 +24,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
isolate_(isolate),
jit_cookie_(0) {

View File

@ -812,9 +812,6 @@ class MacroAssembler: public Assembler {
// Check that the stack is aligned.
void CheckStackAlignment();
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -870,7 +867,6 @@ class MacroAssembler: public Assembler {
Label* no_memento_found);
private:
bool generating_stub_;
bool has_frame_;
Isolate* isolate_;
// This handle will be patched with the code object on installation.

View File

@ -21,7 +21,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
has_double_zero_reg_set_(false),
isolate_(isolate) {

View File

@ -1428,9 +1428,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
// Print a message to stdout and abort execution.
void Abort(BailoutReason msg);
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1728,7 +1725,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
MemOperand SafepointRegisterSlot(Register reg);
MemOperand SafepointRegistersAndDoublesSlot(Register reg);
bool generating_stub_;
bool has_frame_;
bool has_double_zero_reg_set_;
Isolate* isolate_;

View File

@ -32,7 +32,6 @@ const uint32_t kSingleNaNMask = kSingleExponentMask | (1 << kSingleNaNShift);
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
has_double_zero_reg_set_(false),
isolate_(isolate) {

View File

@ -1547,9 +1547,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
// Print a message to stdout and abort execution.
void Abort(BailoutReason msg);
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1880,7 +1877,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
void LoadRegPlusOffsetToAt(const MemOperand& src);
int32_t LoadRegPlusUpperOffsetPartToAt(const MemOperand& src);
bool generating_stub_;
bool has_frame_;
bool has_double_zero_reg_set_;
Isolate* isolate_;

View File

@ -23,7 +23,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
isolate_(isolate) {
if (create_code_object == CodeObjectRequired::kYes) {

View File

@ -1017,9 +1017,6 @@ class MacroAssembler : public Assembler {
// Print a message to stdout and abort execution.
void Abort(BailoutReason reason);
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1479,7 +1476,6 @@ class MacroAssembler : public Assembler {
MemOperand SafepointRegisterSlot(Register reg);
MemOperand SafepointRegistersAndDoublesSlot(Register reg);
bool generating_stub_;
bool has_frame_;
Isolate* isolate_;
// This handle will be patched with the code object on installation.

View File

@ -23,7 +23,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
isolate_(isolate) {
if (create_code_object == CodeObjectRequired::kYes) {

View File

@ -1314,9 +1314,6 @@ class MacroAssembler : public Assembler {
// Print a message to stdout and abort execution.
void Abort(BailoutReason reason);
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1767,7 +1764,6 @@ class MacroAssembler : public Assembler {
MemOperand SafepointRegisterSlot(Register reg);
MemOperand SafepointRegistersAndDoublesSlot(Register reg);
bool generating_stub_;
bool has_frame_;
Isolate* isolate_;
// This handle will be patched with the code object on installation.

View File

@ -24,7 +24,6 @@ namespace internal {
MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
CodeObjectRequired create_code_object)
: Assembler(isolate, buffer, size),
generating_stub_(false),
has_frame_(false),
isolate_(isolate),
root_array_available_(true),

View File

@ -1376,9 +1376,6 @@ class MacroAssembler: public Assembler {
// Check that the stack is aligned.
void CheckStackAlignment();
// Verify restrictions about code generated in stubs.
void set_generating_stub(bool value) { generating_stub_ = value; }
bool generating_stub() { return generating_stub_; }
void set_has_frame(bool value) { has_frame_ = value; }
bool has_frame() { return has_frame_; }
inline bool AllowThisStubCall(CodeStub* stub);
@ -1419,7 +1416,6 @@ class MacroAssembler: public Assembler {
static const int kNumSafepointSavedRegisters = 12;
static const int kSmiShift = kSmiTagSize + kSmiShiftSize;
bool generating_stub_;
bool has_frame_;
Isolate* isolate_;
bool root_array_available_;