fix assertion in Logger::CurrentTimeEvent with --prof
authorofrobots <ofrobots@google.com>
Tue, 28 Apr 2015 08:54:17 +0000 (01:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 08:53:49 +0000 (08:53 +0000)
commit1f03256de37aaa1b1cbe81d56122defa0ad9aa9a
treefa0a4c75056a3f44db7be2792bf35f1d035f240a
parent4d12e9480133a2e4d65749c5c2587ec685bb5c76
fix assertion in Logger::CurrentTimeEvent with --prof

assertion did match the conditions under which this method gets called
(Runtime_DateCurrentTime). The bug got introduced as part of this change:
https://codereview.chromium.org/802333002

The assertion crash can be reproduced using:
% out/Debug/d8 --prof -e 'new Date();'

R=jkummerow@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1104303002

Cr-Commit-Position: refs/heads/master@{#28096}
src/log.cc