Use int instead of size_t, StrLength instead of strlen.

Review URL: http://codereview.chromium.org/8339013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9675 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
keuchel@chromium.org 2011-10-18 10:08:33 +00:00
parent 69afd18e56
commit 96a2c24a16

View File

@ -839,12 +839,12 @@ TEST(ScopePositions) {
reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); reinterpret_cast<uintptr_t>(&marker) - 128 * 1024);
for (int i = 0; source_data[i].outer_prefix; i++) { for (int i = 0; source_data[i].outer_prefix; i++) {
size_t kPrefixLen = strlen(source_data[i].outer_prefix); int kPrefixLen = i::StrLength(source_data[i].outer_prefix);
size_t kInnerLen = strlen(source_data[i].inner_source); int kInnerLen = i::StrLength(source_data[i].inner_source);
size_t kSuffixLen = strlen(source_data[i].outer_suffix); int kSuffixLen = i::StrLength(source_data[i].outer_suffix);
size_t kProgramSize = kPrefixLen + kInnerLen + kSuffixLen; int kProgramSize = kPrefixLen + kInnerLen + kSuffixLen;
i::Vector<char> program = i::Vector<char>::New(kProgramSize + 1); i::Vector<char> program = i::Vector<char>::New(kProgramSize + 1);
size_t length; int length;
length = i::OS::SNPrintF(program, "%s%s%s", length = i::OS::SNPrintF(program, "%s%s%s",
source_data[i].outer_prefix, source_data[i].outer_prefix,
source_data[i].inner_source, source_data[i].inner_source,