Index: src/default-platform.h |
diff --git a/src/hydrogen-mark-unreachable.h b/src/default-platform.h |
similarity index 76% |
copy from src/hydrogen-mark-unreachable.h |
copy to src/default-platform.h |
index e9459d5208c2963c1784330fccc43222ab620bed..fe1bf8e2d64e57349309fdab70c973af2fb99eb9 100644 |
--- a/src/hydrogen-mark-unreachable.h |
+++ b/src/default-platform.h |
@@ -25,29 +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_MARK_UNREACHABLE_H_ |
-#define V8_HYDROGEN_MARK_UNREACHABLE_H_ |
+#ifndef V8_DEFAULT_PLATFORM_H_ |
+#define V8_DEFAULT_PLATFORM_H_ |
-#include "hydrogen.h" |
+#include "v8.h" |
namespace v8 { |
namespace internal { |
- |
-class HMarkUnreachableBlocksPhase : public HPhase { |
+class DefaultPlatform : public Platform { |
public: |
- explicit HMarkUnreachableBlocksPhase(HGraph* graph) |
- : HPhase("H_Mark unrechable blocks", graph) { } |
+ DefaultPlatform(); |
+ virtual ~DefaultPlatform(); |
- void Run(); |
+ // v8::Platform implementation. |
+ virtual void CallOnBackgroundThread( |
+ Task *task, ExpectedRuntime expected_runtime) V8_OVERRIDE; |
+ virtual void CallOnForegroundThread(v8::Isolate *isolate, |
+ Task *task) V8_OVERRIDE; |
private: |
- void MarkUnreachableBlocks(); |
- |
- DISALLOW_COPY_AND_ASSIGN(HMarkUnreachableBlocksPhase); |
+ DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
}; |
} } // namespace v8::internal |
-#endif // V8_HYDROGEN_MARK_UNREACHABLE_H_ |
+ |
+#endif // V8_DEFAULT_PLATFORM_H_ |