Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: src/compiler.cc

Issue 1011733002: CpuProfiler: convert List<InlinedFunctionInfo> into std::vector<InlinedFunctionInfo> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: win64 fix Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 212c4efbf2d39a86f278b7c0d76de25f0acc7778..7cea2631b4d98402ebec083af544de027f0d06c5 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -117,7 +117,7 @@ void CompilationInfo::Initialize(Isolate* isolate,
no_frame_ranges_ = isolate->cpu_profiler()->is_profiling()
? new List<OffsetRange>(2) : NULL;
if (FLAG_hydrogen_track_positions) {
- inlined_function_infos_ = new List<InlinedFunctionInfo>(5);
+ inlined_function_infos_ = new std::vector<InlinedFunctionInfo>();
} else {
inlined_function_infos_ = NULL;
}
@@ -279,7 +279,7 @@ int CompilationInfo::TraceInlinedFunction(Handle<SharedFunctionInfo> shared,
DCHECK(FLAG_hydrogen_track_positions);
DCHECK(inlined_function_infos_);
- int inline_id = inlined_function_infos_->length();
+ int inline_id = static_cast<int>(inlined_function_infos_->size());
InlinedFunctionInfo info(parent_id, position, UnboundScript::kNoScriptId,
shared->start_position());
if (!shared->script()->IsUndefined()) {
@@ -306,7 +306,7 @@ int CompilationInfo::TraceInlinedFunction(Handle<SharedFunctionInfo> shared,
}
}
- inlined_function_infos_->Add(info);
+ inlined_function_infos_->push_back(info);
if (inline_id != 0) {
CodeTracer::Scope tracing_scope(isolate()->GetCodeTracer());
« no previous file with comments | « src/compiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698