Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index 92c958b9620d605db52731b03b4e8a6a2a6f62e0..f3730d6f31af2a74d583b3590452df937f4107bc 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -779,8 +779,13 @@ class Assembler : public AssemblerBase { |
void fcmp(FPURegister src1, const double src2, FPUCondition cond); |
// Check the code size generated from label to here. |
- int InstructionsGeneratedSince(Label* l) { |
- return (pc_offset() - l->pos()) / kInstrSize; |
+ int SizeOfCodeGeneratedSince(Label* label) { |
+ return pc_offset() - label->pos(); |
+ } |
+ |
+ // Check the number of instructions generated from label to here. |
+ int InstructionsGeneratedSince(Label* label) { |
+ return SizeOfCodeGeneratedSince(label) / kInstrSize; |
} |
// Class for scoping postponing the trampoline pool generation. |