aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-profile-generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-profile-generator.cc')
-rw-r--r--deps/v8/test/cctest/test-profile-generator.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/v8/test/cctest/test-profile-generator.cc b/deps/v8/test/cctest/test-profile-generator.cc
index 392782afea..051affc898 100644
--- a/deps/v8/test/cctest/test-profile-generator.cc
+++ b/deps/v8/test/cctest/test-profile-generator.cc
@@ -624,14 +624,12 @@ TEST(ProfileNodeScriptId) {
v8::Local<v8::Script> script_a =
v8_compile(v8_str("function a() { startProfiling(); }\n"));
- script_a->Run(v8::Isolate::GetCurrent()->GetCurrentContext())
- .ToLocalChecked();
+ script_a->Run(env).ToLocalChecked();
v8::Local<v8::Script> script_b =
v8_compile(v8_str("function b() { a(); }\n"
"b();\n"
"stopProfiling();\n"));
- script_b->Run(v8::Isolate::GetCurrent()->GetCurrentContext())
- .ToLocalChecked();
+ script_b->Run(env).ToLocalChecked();
CHECK_EQ(1, iprofiler->GetProfilesCount());
const v8::CpuProfile* profile = i::ProfilerExtension::last_profile;
const v8::CpuProfileNode* current = profile->GetTopDownRoot();
@@ -671,7 +669,8 @@ static const char* line_number_test_source_profile_time_functions =
"bar_at_the_second_line();\n"
"function lazy_func_at_6th_line() {}";
-int GetFunctionLineNumber(CpuProfiler& profiler, LocalContext& env,
+int GetFunctionLineNumber(CpuProfiler& profiler, // NOLINT(runtime/references)
+ LocalContext& env, // NOLINT(runtime/references)
const char* name) {
CodeMap* code_map = profiler.generator()->code_map();
i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(