| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 270c7957b9d9d38d647adad6e8fffa74ab44b90c..70ce6bc825ad0e876dc1db7bad7404547cb21d6c 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -144,7 +144,11 @@ int CompilationInfo::num_heap_slots() const {
|
|
|
| Code::Flags CompilationInfo::flags() const {
|
| if (IsStub()) {
|
| - return Code::ComputeFlags(Code::COMPILED_STUB);
|
| + return Code::ComputeFlags(code_stub()->GetCodeKind(),
|
| + code_stub()->GetICState(),
|
| + code_stub()->GetExtraICState(),
|
| + Code::NORMAL,
|
| + 0);
|
| } else {
|
| return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION);
|
| }
|
| @@ -421,7 +425,7 @@ OptimizingCompiler::Status OptimizingCompiler::GenerateAndInstallCode() {
|
| Timer timer(this, &time_taken_to_codegen_);
|
| ASSERT(chunk_ != NULL);
|
| ASSERT(graph_ != NULL);
|
| - Handle<Code> optimized_code = chunk_->Codegen(Code::OPTIMIZED_FUNCTION);
|
| + Handle<Code> optimized_code = chunk_->Codegen();
|
| if (optimized_code.is_null()) {
|
| info()->set_bailout_reason("code generation failed");
|
| return AbortOptimization();
|
|
|