56a486c322
- this avoids using relative include paths which are forbidden by the style guide - makes the code more readable since it's clear which header is meant - allows for starting to use checkdeps BUG=none R=jkummerow@chromium.org, danno@chromium.org LOG=n Review URL: https://codereview.chromium.org/304153016 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21625 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
// Copyright 2010 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef V8_PROFILE_GENERATOR_INL_H_
|
|
#define V8_PROFILE_GENERATOR_INL_H_
|
|
|
|
#include "src/profile-generator.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
CodeEntry::CodeEntry(Logger::LogEventsAndTags tag,
|
|
const char* name,
|
|
const char* name_prefix,
|
|
const char* resource_name,
|
|
int line_number,
|
|
int column_number)
|
|
: tag_(tag),
|
|
builtin_id_(Builtins::builtin_count),
|
|
name_prefix_(name_prefix),
|
|
name_(name),
|
|
resource_name_(resource_name),
|
|
line_number_(line_number),
|
|
column_number_(column_number),
|
|
shared_id_(0),
|
|
script_id_(v8::UnboundScript::kNoScriptId),
|
|
no_frame_ranges_(NULL),
|
|
bailout_reason_(kEmptyBailoutReason) { }
|
|
|
|
|
|
bool CodeEntry::is_js_function_tag(Logger::LogEventsAndTags tag) {
|
|
return tag == Logger::FUNCTION_TAG
|
|
|| tag == Logger::LAZY_COMPILE_TAG
|
|
|| tag == Logger::SCRIPT_TAG
|
|
|| tag == Logger::NATIVE_FUNCTION_TAG
|
|
|| tag == Logger::NATIVE_LAZY_COMPILE_TAG
|
|
|| tag == Logger::NATIVE_SCRIPT_TAG;
|
|
}
|
|
|
|
|
|
ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry)
|
|
: tree_(tree),
|
|
entry_(entry),
|
|
self_ticks_(0),
|
|
children_(CodeEntriesMatch),
|
|
id_(tree->next_node_id()) { }
|
|
|
|
} } // namespace v8::internal
|
|
|
|
#endif // V8_PROFILE_GENERATOR_INL_H_
|