Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: fixing build warnings in clang
Browse files Browse the repository at this point in the history
PR-URL: #497
Reviewed-By: Jimmy Thomson <jithomso@microsoft.com>
Reviewed-By: Taylor Woll <tawoll@ntdev.microsoft.com>
  • Loading branch information
kfarnung committed Mar 13, 2018
1 parent 8312218 commit d67ed11
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 18 deletions.
16 changes: 9 additions & 7 deletions deps/chakrashim/include/libplatform/v8-tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,17 @@ class TracingController

TracingController() {}
void Initialize(TraceBuffer* trace_buffer);
const uint8_t* GetCategoryGroupEnabled(const char* category_group);
const uint8_t* GetCategoryGroupEnabled(const char* category_group) override;
static const char* GetCategoryGroupName(const uint8_t* category_enabled_flag);
uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag,
const char* name, const char* scope, uint64_t id,
uint64_t bind_id, int32_t num_args,
const char** arg_names, const uint8_t* arg_types,
const uint64_t* arg_values, unsigned int flags);
uint64_t AddTraceEvent(
char phase, const uint8_t* category_enabled_flag, const char* name,
const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
const char** arg_names, const uint8_t* arg_types,
const uint64_t* arg_values,
std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
unsigned int flags) override;
void UpdateTraceEventDuration(const uint8_t* category_enabled_flag,
const char* name, uint64_t handle);
const char* name, uint64_t handle) override;

void StartTracing(TraceConfig* trace_config);
void StopTracing();
Expand Down
4 changes: 4 additions & 0 deletions deps/chakrashim/include/v8-profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ class V8_EXPORT RetainedObjectInfo {
virtual const char *GetGroupLabel() { return nullptr; }
virtual intptr_t GetElementCount() { return 0; }
virtual intptr_t GetSizeInBytes() { return 0; }

protected:
RetainedObjectInfo() {}
virtual ~RetainedObjectInfo() {}
};

struct HeapStatsUpdate {
Expand Down
2 changes: 0 additions & 2 deletions deps/chakrashim/src/inspector/v8-console-message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ V8ConsoleMessage::wrapArguments(V8InspectorSessionImpl* session,

v8::Isolate* isolate = inspectedContext->isolate();
v8::HandleScope handles(isolate);
v8::Local<v8::Context> context = inspectedContext->context();

std::unique_ptr<protocol::Array<protocol::Runtime::RemoteObject>> args =
protocol::Array<protocol::Runtime::RemoteObject>::create();
Expand All @@ -247,7 +246,6 @@ V8ConsoleMessage::wrapArguments(V8InspectorSessionImpl* session,
} else {
for (size_t i = 0; i < m_arguments.size(); ++i) {
// CHAKRA-TODO - Figure out what to do here.
v8::Local<v8::Value> arg = m_arguments[i]->Get(isolate);
std::unique_ptr<protocol::Runtime::RemoteObject> wrapped = nullptr;
if (!wrapped) {
args = nullptr;
Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/src/inspector/v8-debugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ V8Debugger::V8Debugger(v8::Isolate* isolate, V8InspectorImpl* inspector)
m_enableCount(0),
m_breakpointsActivated(true),
m_runningNestedMessageLoop(false),
m_ignoreScriptParsedEventsCounter(0),
m_maxAsyncCallStackDepth(0),
m_pauseOnNextStatement(false) {}

Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/src/inspector/v8-debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ class V8Debugger {
v8::Global<v8::Context> m_debuggerContext;
v8::Local<v8::Context> m_pausedContext;
bool m_runningNestedMessageLoop;
int m_ignoreScriptParsedEventsCounter;

int m_maxAsyncCallStackDepth;
bool m_pauseOnNextStatement;
Expand Down
3 changes: 1 addition & 2 deletions deps/chakrashim/src/inspector/v8-timetravel-agent-impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ V8TimeTravelAgentImpl::V8TimeTravelAgentImpl(
V8InspectorSessionImpl* session, protocol::FrontendChannel* frontendChannel,
protocol::DictionaryValue* state)
: m_session(session),
m_frontend(frontendChannel),
m_state(state) {}
m_frontend(frontendChannel) {}

V8TimeTravelAgentImpl::~V8TimeTravelAgentImpl() {}

Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/src/inspector/v8-timetravel-agent-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class V8TimeTravelAgentImpl : public protocol::TimeTravel::Backend {

V8InspectorSessionImpl* m_session;
protocol::TimeTravel::Frontend m_frontend;
protocol::DictionaryValue* m_state;

DISALLOW_COPY_AND_ASSIGN(V8TimeTravelAgentImpl);
};
Expand Down
1 change: 0 additions & 1 deletion deps/chakrashim/src/jsrtcontextshim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ ContextShim::ContextShim(IsolateShim * isolateShim,
zero(JS_INVALID_REFERENCE),
globalObject(JS_INVALID_REFERENCE),
proxyOfGlobal(JS_INVALID_REFERENCE),
promiseContinuationFunction(JS_INVALID_REFERENCE),
#include "jsrtcachedpropertyidref.inc"
#undef DEF_IS_TYPE
cloneObjectFunction(JS_INVALID_REFERENCE),
Expand Down
3 changes: 0 additions & 3 deletions deps/chakrashim/src/jsrtcontextshim.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ class ContextShim {
JsValueRef proxyOfGlobal;

JsValueRef globalPrototypeFunction[GlobalPrototypeFunction::_FunctionCount];
JsValueRef getOwnPropertyDescriptorFunction;

JsValueRef promiseContinuationFunction;
std::vector<void*> embedderData;

#define DECLARE_CHAKRASHIM_FUNCTION_GETTER(F) \
Expand Down
11 changes: 11 additions & 0 deletions deps/chakrashim/src/v8v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ namespace tracing {
return nullptr;
}

uint64_t TracingController::AddTraceEvent(
char phase, const uint8_t* category_enabled_flag, const char* name,
const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
const char** arg_names, const uint8_t* arg_types,
const uint64_t* arg_values,
std::unique_ptr<v8::ConvertableToTraceFormat>* arg_convertables,
unsigned int flags) {
jsrt::Unimplemented("TracingController");
return 0;
}

void TracingController::UpdateTraceEventDuration(
const uint8_t* category_enabled_flag, const char* name, uint64_t handle) {
jsrt::Unimplemented("TracingController");
Expand Down

0 comments on commit d67ed11

Please sign in to comment.