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

Unified Diff: test/intl/date-format/format-is-bound.js

Issue 148883002: Synchronize with r15594. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 months 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 | « test/intl/date-format/default-locale.js ('k') | test/intl/date-format/format-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/date-format/format-is-bound.js
diff --git a/src/hydrogen-sce.h b/test/intl/date-format/format-is-bound.js
similarity index 81%
copy from src/hydrogen-sce.h
copy to test/intl/date-format/format-is-bound.js
index 55e153e0ed5ee3481669ee5c991f81238d51176e..b744b65b91e2345e6c782579fb25eb8e547d861c 100644
--- a/src/hydrogen-sce.h
+++ b/test/intl/date-format/format-is-bound.js
@@ -25,24 +25,15 @@
// (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_SCE_H_
-#define V8_HYDROGEN_SCE_H_
+// Create default DateTimeFormat.
+var dtf = new Intl.DateTimeFormat();
-#include "hydrogen.h"
+// Array we want to iterate, actual dates are not important.
+var dateArray = [Date.now(), Date.now(), Date.now()];
-namespace v8 {
-namespace internal {
+// It shouldn't throw.
+// The format() method should be properly bound to the dtf object.
+dateArray.forEach(dtf.format);
-
-class HStackCheckEliminationPhase : public HPhase {
- public:
- explicit HStackCheckEliminationPhase(HGraph* graph)
- : HPhase("H_Stack check elimination", graph) { }
-
- void Run();
-};
-
-
-} } // namespace v8::internal
-
-#endif // V8_HYDROGEN_SCE_H_
+// Formatting a date should work in a direct call.
+dtf.format();
« no previous file with comments | « test/intl/date-format/default-locale.js ('k') | test/intl/date-format/format-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698