| 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();
|
|
|