Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 3b34cda3085b293cb023aec1c23bc2593561fb39..f7b5da8a9ec03a39f90349168abf92d10f2f6fa0 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -296,40 +296,36 @@ void FullCodeGenerator::Generate() { |
__ CallRuntime(Runtime::kTraceEnter); |
} |
- // Visit the declarations and body unless there is an illegal |
- // redeclaration. |
- if (scope()->HasIllegalRedeclaration()) { |
- EmitIllegalRedeclaration(); |
- } else { |
- PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
- { Comment cmnt(masm_, "[ Declarations"); |
- VisitDeclarations(scope()->declarations()); |
- } |
+ // Visit the declarations and body. |
+ PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
+ { |
+ Comment cmnt(masm_, "[ Declarations"); |
+ VisitDeclarations(scope()->declarations()); |
+ } |
- // Assert that the declarations do not use ICs. Otherwise the debugger |
- // won't be able to redirect a PC at an IC to the correct IC in newly |
- // recompiled code. |
- DCHECK_EQ(0, ic_total_count_); |
+ // Assert that the declarations do not use ICs. Otherwise the debugger |
+ // won't be able to redirect a PC at an IC to the correct IC in newly |
+ // recompiled code. |
+ DCHECK_EQ(0, ic_total_count_); |
- { |
- Comment cmnt(masm_, "[ Stack check"); |
- PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); |
- Label ok; |
- DCHECK(jssp.Is(__ StackPointer())); |
- __ CompareRoot(jssp, Heap::kStackLimitRootIndex); |
- __ B(hs, &ok); |
- PredictableCodeSizeScope predictable(masm_, |
- Assembler::kCallSizeWithRelocation); |
- __ Call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET); |
- __ Bind(&ok); |
- } |
+ { |
+ Comment cmnt(masm_, "[ Stack check"); |
+ PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); |
+ Label ok; |
+ DCHECK(jssp.Is(__ StackPointer())); |
+ __ CompareRoot(jssp, Heap::kStackLimitRootIndex); |
+ __ B(hs, &ok); |
+ PredictableCodeSizeScope predictable(masm_, |
+ Assembler::kCallSizeWithRelocation); |
+ __ Call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET); |
+ __ Bind(&ok); |
+ } |
- { |
- Comment cmnt(masm_, "[ Body"); |
- DCHECK(loop_depth() == 0); |
- VisitStatements(literal()->body()); |
- DCHECK(loop_depth() == 0); |
- } |
+ { |
+ Comment cmnt(masm_, "[ Body"); |
+ DCHECK(loop_depth() == 0); |
+ VisitStatements(literal()->body()); |
+ DCHECK(loop_depth() == 0); |
} |
// Always emit a 'return undefined' in case control fell off the end of |