diff --git a/deps/v8/src/log.cc b/deps/v8/src/log.cc index b049ffe4eb7..3ecc2049656 100644 --- a/deps/v8/src/log.cc +++ b/deps/v8/src/log.cc @@ -1485,7 +1485,11 @@ void Logger::LogCodeObject(Object* object) { tag = Logger::STUB_TAG; break; case Code::BUILTIN: - description = "A builtin from the snapshot"; + description = + Isolate::Current()->builtins()->Lookup(code_object->entry()); + if (description == NULL) { + description = "A builtin from the snapshot"; + } tag = Logger::BUILTIN_TAG; break; case Code::KEYED_LOAD_IC: diff --git a/src/node.cc b/src/node.cc index e80c1a573f5..e8ccb7276b8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1427,7 +1427,7 @@ static Handle Umask(const Arguments& args) { node::Utf8Value str(args[0]); // Parse the octal string. - for (int i = 0; i < str.length(); i++) { + for (size_t i = 0; i < str.length(); i++) { char c = (*str)[i]; if (c > '7' || c < '0') { return ThrowException(Exception::TypeError(