From: palfia@homejinni.com Date: Tue, 3 Sep 2013 10:11:10 +0000 (+0000) Subject: MIPS: thread isolate for files starting with 'b' and 'c'. X-Git-Tag: upstream/4.7.83~12694 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1749bb620f6b52479a51802dff6c6e5e424e2d58;p=platform%2Fupstream%2Fv8.git MIPS: thread isolate for files starting with 'b' and 'c'. Port r16489 (bde75fe) BUG= Review URL: https://codereview.chromium.org/23814003 Patch from Balazs Kilvady . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16498 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/mips/codegen-mips.h b/src/mips/codegen-mips.h index 950df21..32d7d0d 100644 --- a/src/mips/codegen-mips.h +++ b/src/mips/codegen-mips.h @@ -63,7 +63,7 @@ class CodeGenerator: public AstVisitor { // Print the code after compiling it. static void PrintCode(Handle code, CompilationInfo* info); - static bool ShouldGenerateLog(Expression* type); + static bool ShouldGenerateLog(Isolate* isolate, Expression* type); static void SetFunctionInfo(Handle fun, FunctionLiteral* lit, diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc index 37d6bcf..bf6f1c8 100644 --- a/src/mips/full-codegen-mips.cc +++ b/src/mips/full-codegen-mips.cc @@ -3331,7 +3331,7 @@ void FullCodeGenerator::EmitLog(CallRuntime* expr) { // 2 (array): Arguments to the format string. ZoneList* args = expr->arguments(); ASSERT_EQ(args->length(), 3); - if (CodeGenerator::ShouldGenerateLog(args->at(0))) { + if (CodeGenerator::ShouldGenerateLog(isolate(), args->at(0))) { VisitForStackValue(args->at(1)); VisitForStackValue(args->at(2)); __ CallRuntime(Runtime::kLog, 2);