Reviewers: Yang,

Description:
Fix build failure on Windows since r14116.

TBR=yang...@chromium.org


Please review this at https://codereview.chromium.org/13464010/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/ast.h
  M src/d8.h
  M src/d8.cc


Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 948343b6dd683e903dd3072bd061bad721adad9b..dddfc835fd284d400973b7c9cd994c3627bbeac7 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -120,6 +120,10 @@ namespace internal {
   STATEMENT_NODE_LIST(V)                        \
   EXPRESSION_NODE_LIST(V)

+#ifdef WIN32
+#undef Yield
+#endif
+
 // Forward declarations
 class AstConstructionVisitor;
 template<class> class AstNodeFactory;
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 941f34d577ee70ea2cc77f21e9a26cf8de08cf72..b57e3907ce9eee32940038e6aaf9d7dd2935cadf 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -907,12 +907,6 @@ Handle<Value> Shell::Uint8ClampedArray(const Arguments& args) {
 }


-Handle<Value> Shell::Yield(const Arguments& args) {
-  v8::Unlocker unlocker(args.GetIsolate());
-  return Undefined(args.GetIsolate());
-}
-
-
 Handle<Value> Shell::Quit(const Arguments& args) {
   int exit_code = args[0]->Int32Value();
   OnExit();
Index: src/d8.h
diff --git a/src/d8.h b/src/d8.h
index 621ac74095b960c99e61ae056ed697b92233d999..2789c076383be2448d4dacaa5afdf77476e4c37b 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -298,13 +298,8 @@ class Shell : public i::AllStatic {
 #endif  // ENABLE_DEBUGGER_SUPPORT
 #endif  // V8_SHARED

-#ifdef WIN32
-#undef Yield
-#endif
-
   static Handle<Value> Print(const Arguments& args);
   static Handle<Value> Write(const Arguments& args);
-  static Handle<Value> Yield(const Arguments& args);
   static Handle<Value> Quit(const Arguments& args);
   static Handle<Value> Version(const Arguments& args);
   static Handle<Value> EnableProfiler(const Arguments& args);


--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to