diff options
Diffstat (limited to 'src/full-codegen.cc')
-rw-r--r-- | src/full-codegen.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/full-codegen.cc b/src/full-codegen.cc index 8a8b39be..a468f149 100644 --- a/src/full-codegen.cc +++ b/src/full-codegen.cc @@ -770,7 +770,7 @@ void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { if (FLAG_debug_info) { - CodeGenerator::RecordPositions(masm_, fun->end_position()); + CodeGenerator::RecordPositions(masm_, fun->end_position() - 1); } } @@ -917,6 +917,8 @@ void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* expr) { EmitSwapElements(expr->arguments()); } else if (strcmp("_GetFromCache", *name->ToCString()) == 0) { EmitGetFromCache(expr->arguments()); + } else if (strcmp("_IsRegExpEquivalent", *name->ToCString()) == 0) { + EmitIsRegExpEquivalent(expr->arguments()); } else { UNREACHABLE(); } |