Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 924079863b11afaa1610e0bc81684ec5ed734463..9861b1b5a68b75961c78a2cebfcd5f655d46220a 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -876,27 +876,9 @@ void Logger::ApiEvent(const char* format, ...) { |
} |
-void Logger::ApiNamedSecurityCheck(Object* key) { |
+void Logger::ApiSecurityCheck() { |
if (!log_->IsEnabled() || !FLAG_log_api) return; |
- if (key->IsString()) { |
- SmartArrayPointer<char> str = |
- String::cast(key)->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL); |
- ApiEvent("api,check-security,\"%s\"", str.get()); |
- } else if (key->IsSymbol()) { |
- Symbol* symbol = Symbol::cast(key); |
- if (symbol->name()->IsUndefined()) { |
- ApiEvent("api,check-security,symbol(hash %x)", Symbol::cast(key)->Hash()); |
- } else { |
- SmartArrayPointer<char> str = String::cast(symbol->name())->ToCString( |
- DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL); |
- ApiEvent("api,check-security,symbol(\"%s\" hash %x)", str.get(), |
- Symbol::cast(key)->Hash()); |
- } |
- } else if (key->IsUndefined()) { |
- ApiEvent("api,check-security,undefined"); |
- } else { |
- ApiEvent("api,check-security,['no-name']"); |
- } |
+ ApiEvent("api,check-security"); |
} |
@@ -1029,12 +1011,6 @@ void Logger::RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache) { |
} |
-void Logger::ApiIndexedSecurityCheck(uint32_t index) { |
- if (!log_->IsEnabled() || !FLAG_log_api) return; |
- ApiEvent("api,check-security,%u", index); |
-} |
- |
- |
void Logger::ApiNamedPropertyAccess(const char* tag, |
JSObject* holder, |
Object* name) { |