Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 6ec375105b2e6ee2e5ceba5ab0fe631b433602bd..d33c7f06bd44e077badacee8ec2e3ca2bf1b1014 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -124,7 +124,7 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { |
#ifdef ENABLE_DISASSEMBLER |
AllowDeferredHandleDereference allow_deference_for_print_code; |
- bool print_code = Isolate::Current()->bootstrapper()->IsActive() |
+ bool print_code = info->isolate()->bootstrapper()->IsActive() |
? FLAG_print_builtin_code |
: (FLAG_print_code || |
(info->IsStub() && FLAG_print_code_stubs) || |
@@ -171,9 +171,8 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { |
} |
-bool CodeGenerator::ShouldGenerateLog(Expression* type) { |
+bool CodeGenerator::ShouldGenerateLog(Isolate* isolate, Expression* type) { |
ASSERT(type != NULL); |
- Isolate* isolate = Isolate::Current(); |
if (!isolate->logger()->is_logging() && |
!isolate->cpu_profiler()->is_profiling()) { |
return false; |