Index: src/default-platform.cc |
diff --git a/src/hydrogen-mark-unreachable.h b/src/default-platform.cc |
similarity index 78% |
copy from src/hydrogen-mark-unreachable.h |
copy to src/default-platform.cc |
index e9459d5208c2963c1784330fccc43222ab620bed..ef3c4ebd450bbc63ae99b4534a22fa5bd67a2f39 100644 |
--- a/src/hydrogen-mark-unreachable.h |
+++ b/src/default-platform.cc |
@@ -25,29 +25,32 @@ |
// (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_ |
+#include "v8.h" |
-#include "hydrogen.h" |
+#include "default-platform.h" |
namespace v8 { |
namespace internal { |
-class HMarkUnreachableBlocksPhase : public HPhase { |
- public: |
- explicit HMarkUnreachableBlocksPhase(HGraph* graph) |
- : HPhase("H_Mark unrechable blocks", graph) { } |
+DefaultPlatform::DefaultPlatform() {} |
- void Run(); |
- private: |
- void MarkUnreachableBlocks(); |
+DefaultPlatform::~DefaultPlatform() {} |
- DISALLOW_COPY_AND_ASSIGN(HMarkUnreachableBlocksPhase); |
-}; |
+void DefaultPlatform::CallOnBackgroundThread(Task *task, |
+ ExpectedRuntime expected_runtime) { |
+ // TODO(jochen): implement. |
+ task->Run(); |
+ delete task; |
+} |
-} } // namespace v8::internal |
+void DefaultPlatform::CallOnForegroundThread(v8::Isolate* isolate, Task* task) { |
+ // TODO(jochen): implement. |
+ task->Run(); |
+ delete task; |
+} |
+ |
-#endif // V8_HYDROGEN_MARK_UNREACHABLE_H_ |
+} } // namespace v8::internal |