Commit d079e3f9 authored by danno@chromium.org's avatar danno@chromium.org

Fix another casting problem in Win64

TBR=jkummerow@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12881 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a7a63219
...@@ -108,9 +108,10 @@ static const int kDeoptTableMaxEpilogueCodeSize = 2 * KB; ...@@ -108,9 +108,10 @@ static const int kDeoptTableMaxEpilogueCodeSize = 2 * KB;
size_t Deoptimizer::GetMaxDeoptTableSize() { size_t Deoptimizer::GetMaxDeoptTableSize() {
int entries_size = int entries_size =
Deoptimizer::kMaxNumberOfEntries * Deoptimizer::table_entry_size_; Deoptimizer::kMaxNumberOfEntries * Deoptimizer::table_entry_size_;
int commit_page_size = static_cast<int>(OS::CommitPageSize());
int page_count = ((kDeoptTableMaxEpilogueCodeSize + entries_size - 1) / int page_count = ((kDeoptTableMaxEpilogueCodeSize + entries_size - 1) /
OS::CommitPageSize()) + 1; commit_page_size) + 1;
return OS::CommitPageSize() * page_count; return static_cast<size_t>(commit_page_size * page_count);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment