Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 1710b609dc68740a60cb1984cdbb9223415e99f5..c51940d9061f86579c16849e551ed7f36414cd74 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -451,7 +451,9 @@ void FullCodeGenerator::EmitReturnSequence() { |
// sequence. |
{ Assembler::BlockConstPoolScope block_const_pool(masm_); |
int32_t sp_delta = (info_->scope()->num_parameters() + 1) * kPointerSize; |
- CodeGenerator::RecordPositions(masm_, function()->end_position() - 1); |
+ if (function()->end_position() != RelocInfo::kNoPosition) { |
arv (Not doing code reviews)
2014/11/07 00:03:04
I'm going to see if I can use the position of the
|
+ CodeGenerator::RecordPositions(masm_, function()->end_position() - 1); |
+ } |
// TODO(svenpanne) The code below is sometimes 4 words, sometimes 5! |
PredictableCodeSizeScope predictable(masm_, -1); |
__ RecordJSReturn(); |