Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 1ec2626da9b2ce22eefd25de31468035ba3804c1..e86baa02aa3faee01657ee2a7bc980dfc25210b0 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -59,8 +59,7 @@ CompilationInfo::CompilationInfo(Handle<Script> script, |
: flags_(LanguageModeField::encode(CLASSIC_MODE)), |
script_(script), |
osr_ast_id_(BailoutId::None()), |
- osr_pc_offset_(0), |
- parameter_count_(0) { |
+ osr_pc_offset_(0) { |
Initialize(script->GetIsolate(), BASE, zone); |
} |
@@ -71,8 +70,7 @@ CompilationInfo::CompilationInfo(Handle<SharedFunctionInfo> shared_info, |
shared_info_(shared_info), |
script_(Handle<Script>(Script::cast(shared_info->script()))), |
osr_ast_id_(BailoutId::None()), |
- osr_pc_offset_(0), |
- parameter_count_(0) { |
+ osr_pc_offset_(0) { |
Initialize(script_->GetIsolate(), BASE, zone); |
} |
@@ -85,8 +83,7 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> closure, |
script_(Handle<Script>(Script::cast(shared_info_->script()))), |
context_(closure->context()), |
osr_ast_id_(BailoutId::None()), |
- osr_pc_offset_(0), |
- parameter_count_(0) { |
+ osr_pc_offset_(0) { |
Initialize(script_->GetIsolate(), BASE, zone); |
} |
@@ -97,8 +94,7 @@ CompilationInfo::CompilationInfo(HydrogenCodeStub* stub, |
: flags_(LanguageModeField::encode(CLASSIC_MODE) | |
IsLazy::encode(true)), |
osr_ast_id_(BailoutId::None()), |
- osr_pc_offset_(0), |
- parameter_count_(0) { |
+ osr_pc_offset_(0) { |
Initialize(isolate, STUB, zone); |
code_stub_ = stub; |
} |
@@ -188,12 +184,8 @@ void CompilationInfo::RollbackDependencies() { |
int CompilationInfo::num_parameters() const { |
- if (IsStub()) { |
- ASSERT(parameter_count_ > 0); |
- return parameter_count_; |
- } else { |
- return scope()->num_parameters(); |
- } |
+ ASSERT(!IsStub()); |
+ return scope()->num_parameters(); |
} |