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

Unified Diff: src/default-platform.cc

Issue 110573004: Merge bleeding_edge 17696:18016. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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
Index: src/default-platform.cc
diff --git a/src/hydrogen-bch.h b/src/default-platform.cc
similarity index 78%
copy from src/hydrogen-bch.h
copy to src/default-platform.cc
index a22dacdd4229748e2735b3c0d8519c927b2f617d..ef3c4ebd450bbc63ae99b4534a22fa5bd67a2f39 100644
--- a/src/hydrogen-bch.h
+++ b/src/default-platform.cc
@@ -25,31 +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_BCH_H_
-#define V8_HYDROGEN_BCH_H_
+#include "v8.h"
-#include "hydrogen.h"
+#include "default-platform.h"
namespace v8 {
namespace internal {
-class HBoundsCheckHoistingPhase : public HPhase {
- public:
- explicit HBoundsCheckHoistingPhase(HGraph* graph)
- : HPhase("H_Bounds checks hoisting", graph) { }
+DefaultPlatform::DefaultPlatform() {}
- void Run() {
- HoistRedundantBoundsChecks();
- }
- private:
- void HoistRedundantBoundsChecks();
+DefaultPlatform::~DefaultPlatform() {}
- DISALLOW_COPY_AND_ASSIGN(HBoundsCheckHoistingPhase);
-};
+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_BCE_H_
+} } // namespace v8::internal
« include/v8-platform.h ('K') | « src/default-platform.h ('k') | src/defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698