Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: src/default-platform.cc

Issue 75283002: Introduce a v8::Platform class that bundles embedder callbacks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/default-platform.h ('k') | src/v8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/default-platform.cc
diff --git a/src/hydrogen-dehoist.h b/src/default-platform.cc
similarity index 80%
copy from src/hydrogen-dehoist.h
copy to src/default-platform.cc
index 140dc6e0e223c87fa955817f1792af76e595bf34..daba039364e5f5d8af26aa3ea781385eec4bcef5 100644
--- a/src/hydrogen-dehoist.h
+++ b/src/default-platform.cc
@@ -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_DEHOIST_H_
-#define V8_HYDROGEN_DEHOIST_H_
+#include "v8.h"
-#include "hydrogen.h"
+#include "default-platform.h"
namespace v8 {
namespace internal {
-class HDehoistIndexComputationsPhase : public HPhase {
- public:
- explicit HDehoistIndexComputationsPhase(HGraph* graph)
- : HPhase("H_Dehoist index computations", graph) { }
+DefaultPlatform::DefaultPlatform() {}
- void Run();
- private:
- DISALLOW_COPY_AND_ASSIGN(HDehoistIndexComputationsPhase);
-};
+DefaultPlatform::~DefaultPlatform() {}
+void DefaultPlatform::CallOnBackgroundThread(Task *task, bool task_is_slow) {
+ // TODO(jochen): implement.
+ task->Run();
+ delete task;
+}
-} } // namespace v8::internal
-#endif // V8_HYDROGEN_DEHOIST_H_
+void DefaultPlatform::CallOnForegroundThread(v8::Isolate* isolate, Task* task) {
+ // TODO(jochen): implement.
+ task->Run();
+ delete task;
+}
+
+
+} } // namespace v8::internal
« no previous file with comments | « src/default-platform.h ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698