1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
13 Logger::LogEventsAndTags Logger::ToNativeByScript(Logger::LogEventsAndTags tag,
15 if ((tag == FUNCTION_TAG || tag == LAZY_COMPILE_TAG || tag == SCRIPT_TAG)
16 && script->type()->value() == Script::TYPE_NATIVE) {
18 case FUNCTION_TAG: return NATIVE_FUNCTION_TAG;
19 case LAZY_COMPILE_TAG: return NATIVE_LAZY_COMPILE_TAG;
20 case SCRIPT_TAG: return NATIVE_SCRIPT_TAG;
29 } } // namespace v8::internal
31 #endif // V8_LOG_INL_H_