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 <kilvadyb@homejinni.com>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16498 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
fdb5b9241c
commit
1749bb620f
@ -63,7 +63,7 @@ class CodeGenerator: public AstVisitor {
|
|||||||
// Print the code after compiling it.
|
// Print the code after compiling it.
|
||||||
static void PrintCode(Handle<Code> code, CompilationInfo* info);
|
static void PrintCode(Handle<Code> code, CompilationInfo* info);
|
||||||
|
|
||||||
static bool ShouldGenerateLog(Expression* type);
|
static bool ShouldGenerateLog(Isolate* isolate, Expression* type);
|
||||||
|
|
||||||
static void SetFunctionInfo(Handle<JSFunction> fun,
|
static void SetFunctionInfo(Handle<JSFunction> fun,
|
||||||
FunctionLiteral* lit,
|
FunctionLiteral* lit,
|
||||||
|
@ -3331,7 +3331,7 @@ void FullCodeGenerator::EmitLog(CallRuntime* expr) {
|
|||||||
// 2 (array): Arguments to the format string.
|
// 2 (array): Arguments to the format string.
|
||||||
ZoneList<Expression*>* args = expr->arguments();
|
ZoneList<Expression*>* args = expr->arguments();
|
||||||
ASSERT_EQ(args->length(), 3);
|
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(1));
|
||||||
VisitForStackValue(args->at(2));
|
VisitForStackValue(args->at(2));
|
||||||
__ CallRuntime(Runtime::kLog, 2);
|
__ CallRuntime(Runtime::kLog, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user