| Index: src/default-platform.h
|
| diff --git a/src/hydrogen-canonicalize.h b/src/default-platform.h
|
| similarity index 76%
|
| copy from src/hydrogen-canonicalize.h
|
| copy to src/default-platform.h
|
| index d2b289bc2124d2634c48a50b5c202c2941886b8c..45a6056ed61415bfbcd1d2a0910f67dbae3f5c78 100644
|
| --- a/src/hydrogen-canonicalize.h
|
| +++ b/src/default-platform.h
|
| @@ -25,27 +25,31 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_HYDROGEN_CANONICALIZE_H_
|
| -#define V8_HYDROGEN_CANONICALIZE_H_
|
| +#ifndef V8_DEFAULT_PLATFORM_H_
|
| +#define V8_DEFAULT_PLATFORM_H_
|
|
|
| -#include "hydrogen.h"
|
| +#include "v8.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -
|
| -class HCanonicalizePhase : public HPhase {
|
| +class DefaultPlatform : public Platform {
|
| public:
|
| - explicit HCanonicalizePhase(HGraph* graph)
|
| - : HPhase("H_Canonicalize", graph) { }
|
| + DefaultPlatform();
|
| + virtual ~DefaultPlatform();
|
|
|
| - void Run();
|
| + // v8::Platform implementation.
|
| + virtual void CallOnBackgroundThread(Task *task,
|
| + bool task_is_slow) V8_OVERRIDE;
|
| + virtual void CallOnForegroundThread(v8::Isolate *isolate,
|
| + Task *task) V8_OVERRIDE;
|
|
|
| private:
|
| - DISALLOW_COPY_AND_ASSIGN(HCanonicalizePhase);
|
| + DISALLOW_COPY_AND_ASSIGN(DefaultPlatform);
|
| };
|
|
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_HYDROGEN_CANONICALIZE_H_
|
| +
|
| +#endif // V8_DEFAULT_PLATFORM_H_
|
|
|