Commit e571c18d authored by oliver@apple.com's avatar oliver@apple.com

fourthTier: DFG::ByteCodeParser doesn't need ExecState*

https://bugs.webkit.org/show_bug.cgi?id=115582

Reviewed by Geoffrey Garen.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(ByteCodeParser):
(JSC::DFG::parse):
* dfg/DFGByteCodeParser.h:
(DFG):
* dfg/DFGDriver.cpp:
(JSC::DFG::compile):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153144 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4bba8c0b
2013-05-03 Filip Pizlo <fpizlo@apple.com>
fourthTier: DFG::ByteCodeParser doesn't need ExecState*
https://bugs.webkit.org/show_bug.cgi?id=115582
Reviewed by Geoffrey Garen.
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(ByteCodeParser):
(JSC::DFG::parse):
* dfg/DFGByteCodeParser.h:
(DFG):
* dfg/DFGDriver.cpp:
(JSC::DFG::compile):
2013-05-02 Filip Pizlo <fpizlo@apple.com> 2013-05-02 Filip Pizlo <fpizlo@apple.com>
fourthTier: Profiler should be thread-safe fourthTier: Profiler should be thread-safe
......
...@@ -3793,11 +3793,10 @@ bool ByteCodeParser::parse() ...@@ -3793,11 +3793,10 @@ bool ByteCodeParser::parse()
return true; return true;
} }
bool parse(ExecState*, Graph& graph) bool parse(Graph& graph)
{ {
SamplingRegion samplingRegion("DFG Parsing"); SamplingRegion samplingRegion("DFG Parsing");
#if DFG_DEBUG_LOCAL_DISBALE #if DFG_DEBUG_LOCAL_DISBALE
UNUSED_PARAM(exec);
UNUSED_PARAM(graph); UNUSED_PARAM(graph);
return false; return false;
#else #else
......
/* /*
* Copyright (C) 2011 Apple Inc. All rights reserved. * Copyright (C) 2011, 2013 Apple Inc. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -39,7 +39,7 @@ namespace DFG { ...@@ -39,7 +39,7 @@ namespace DFG {
// Populate the Graph with a basic block of code from the CodeBlock, // Populate the Graph with a basic block of code from the CodeBlock,
// starting at the provided bytecode index. // starting at the provided bytecode index.
bool parse(ExecState*, Graph&); bool parse(Graph&);
} } // namespace JSC::DFG } } // namespace JSC::DFG
......
...@@ -126,7 +126,7 @@ static bool compile(CompileMode compileMode, ExecState* exec, CodeBlock* codeBlo ...@@ -126,7 +126,7 @@ static bool compile(CompileMode compileMode, ExecState* exec, CodeBlock* codeBlo
} }
Graph dfg(exec->vm(), codeBlock, osrEntryBytecodeIndex, mustHandleValues); Graph dfg(exec->vm(), codeBlock, osrEntryBytecodeIndex, mustHandleValues);
if (!parse(exec, dfg)) if (!parse(dfg))
return false; return false;
// By this point the DFG bytecode parser will have potentially mutated various tables // By this point the DFG bytecode parser will have potentially mutated various tables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment