Skip to content

Commit

Permalink
Roll Clang to 3928edecfbd116d56bbe7411365d50bb567380a1.
Browse files Browse the repository at this point in the history
Re-run clang-format.

TEST=ci
Change-Id: If40a619e32a17ae95c5ee39e36ef0effd07e90b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/385363
Reviewed-by: Brian Quinlan <[email protected]>
Commit-Queue: Ryan Macnak <[email protected]>
  • Loading branch information
rmacnak-google authored and Commit Queue committed Sep 23, 2024
1 parent 5fb260e commit 2a96956
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ vars = {
"jsc_tag": "version:282418",

# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang
"clang_version": "git_revision:0cfd03ac0d3f9713090a581bda07584754c73a49",
"clang_version": "git_revision:3928edecfbd116d56bbe7411365d50bb567380a1",

# https://chrome-infra-packages.appspot.com/p/gn/gn
"gn_version": "git_revision:20806f79c6b4ba295274e3a589d85db41a02fdaa",
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/compiler/assembler/disassembler_x86.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class DisassemblerX64 : public ValueObject {

int PrintOperands(const char* mnem, OperandType op_order, uint8_t* data);

typedef const char* (DisassemblerX64::* RegisterNameMapping)(int reg) const;
typedef const char* (DisassemblerX64::*RegisterNameMapping)(int reg) const;

int PrintRightOperandHelper(uint8_t* modrmp,
RegisterNameMapping register_name);
Expand Down
8 changes: 4 additions & 4 deletions runtime/vm/compiler/backend/range_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,10 @@ class BoundsCheckGeneralizer {
}
}

typedef Definition* (BoundsCheckGeneralizer::* PhiBoundFunc)(PhiInstr*,
LoopInfo*,
InductionVar*,
Instruction*);
typedef Definition* (BoundsCheckGeneralizer::*PhiBoundFunc)(PhiInstr*,
LoopInfo*,
InductionVar*,
Instruction*);

// Construct symbolic lower bound for a value at the given point.
Definition* ConstructLowerBound(Definition* value, Instruction* point) {
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/compiler/compiler_timings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void CompilerTimings::PrintTimers(
(*static_cast<Timer* const*>(pa))->TotalElapsedTime();
const auto b_elapsed =
(*static_cast<Timer* const*>(pb))->TotalElapsedTime();
return b_elapsed<a_elapsed ? -1 : b_elapsed> a_elapsed ? 1 : 0;
return b_elapsed < a_elapsed ? -1 : b_elapsed > a_elapsed ? 1 : 0;
});

// Print sorted in descending order.
Expand Down
6 changes: 3 additions & 3 deletions runtime/vm/compiler/stub_code_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1698,9 +1698,9 @@ EMIT_BOX_ALLOCATION(Int32x4)
static void GenerateBoxFpuValueStub(Assembler* assembler,
const dart::Class& cls,
const RuntimeEntry& runtime_entry,
void (Assembler::* store_value)(FpuRegister,
Register,
int32_t)) {
void (Assembler::*store_value)(FpuRegister,
Register,
int32_t)) {
Label call_runtime;
if (!FLAG_use_slow_path && FLAG_inline_alloc) {
__ TryAllocate(cls, &call_runtime, compiler::Assembler::kFarJump,
Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25974,7 +25974,7 @@ const intptr_t
16, // kTypedDataFloat32x4ArrayCid.
16, // kTypedDataInt32x4ArrayCid.
16, // kTypedDataFloat64x2ArrayCid,
};
};

bool TypedData::CanonicalizeEquals(const Instance& other) const {
if (this->ptr() == other.ptr()) {
Expand Down
16 changes: 9 additions & 7 deletions runtime/vm/service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6011,17 +6011,19 @@ static void GetDefaultClassesAliases(Thread* thread, JSONStream* js) {
CLASS_LIST_SETS(DEFINE_ADD_VALUE_F_CID)
}
#define DEFINE_ADD_MAP_KEY(clazz) \
{JSONArray internals(&map, #clazz); \
DEFINE_ADD_VALUE_F_CID(TypedData##clazz) \
DEFINE_ADD_VALUE_F_CID(TypedData##clazz##View) \
DEFINE_ADD_VALUE_F_CID(ExternalTypedData##clazz) \
DEFINE_ADD_VALUE_F_CID(UnmodifiableTypedData##clazz##View) \
{ \
JSONArray internals(&map, #clazz); \
DEFINE_ADD_VALUE_F_CID(TypedData##clazz) \
DEFINE_ADD_VALUE_F_CID(TypedData##clazz##View) \
DEFINE_ADD_VALUE_F_CID(ExternalTypedData##clazz) \
DEFINE_ADD_VALUE_F_CID(UnmodifiableTypedData##clazz##View) \
}
CLASS_LIST_TYPED_DATA(DEFINE_ADD_MAP_KEY)
#undef DEFINE_ADD_MAP_KEY
#define DEFINE_ADD_MAP_KEY(clazz) \
{JSONArray internals(&map, #clazz); \
DEFINE_ADD_VALUE_F_CID(Ffi##clazz) \
{ \
JSONArray internals(&map, #clazz); \
DEFINE_ADD_VALUE_F_CID(Ffi##clazz) \
}
CLASS_LIST_FFI(DEFINE_ADD_MAP_KEY)
#undef DEFINE_ADD_MAP_KEY
Expand Down
6 changes: 3 additions & 3 deletions runtime/vm/snapshot_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ ISOLATE_UNIT_TEST_CASE(SerializeByteArray) {
serialized_array ^= ReadMessage(thread, message.get()); \
for (int i = 0; i < kArrayLength; i++) { \
EXPECT_EQ(static_cast<ctype>(i), \
serialized_array.Get##darttype(i* scale)); \
serialized_array.Get##darttype(i * scale)); \
} \
}

Expand All @@ -618,7 +618,7 @@ ISOLATE_UNIT_TEST_CASE(SerializeByteArray) {
serialized_array ^= ReadMessage(thread, message.get()); \
for (int i = 0; i < length; i++) { \
EXPECT_EQ(static_cast<ctype>(data[i]), \
serialized_array.Get##darttype(i* scale)); \
serialized_array.Get##darttype(i * scale)); \
} \
}

Expand All @@ -639,7 +639,7 @@ ISOLATE_UNIT_TEST_CASE(SerializeByteArray) {
serialized_view ^= ReadMessage(thread, message.get()); \
for (int i = 0; i < length; i++) { \
EXPECT_EQ(static_cast<ctype>(data[i]), \
serialized_view.Get##darttype(i* scale)); \
serialized_view.Get##darttype(i * scale)); \
} \
}

Expand Down
7 changes: 3 additions & 4 deletions runtime/vm/stub_code.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ void StubCode::Init() {
#undef STUB_CODE_GENERATE
#undef STUB_CODE_SET_OBJECT_POOL

CodePtr StubCode::Generate(
const char* name,
compiler::ObjectPoolBuilder* object_pool_builder,
void (compiler::StubCodeCompiler::* GenerateStub)()) {
CodePtr StubCode::Generate(const char* name,
compiler::ObjectPoolBuilder* object_pool_builder,
void (compiler::StubCodeCompiler::*GenerateStub)()) {
auto thread = Thread::Current();
SafepointWriteRwLocker ml(thread, thread->isolate_group()->program_lock());

Expand Down
4 changes: 2 additions & 2 deletions runtime/vm/stub_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class StubCode : public AllStatic {
// code executable area.
static CodePtr Generate(const char* name,
compiler::ObjectPoolBuilder* object_pool_builder,
void (compiler::StubCodeCompiler::* GenerateStub)());
void (compiler::StubCodeCompiler::*GenerateStub)());
#endif // !defined(DART_PRECOMPILED_RUNTIME)

static const Code& UnoptimizedStaticCallEntry(intptr_t num_args_tested);
Expand Down Expand Up @@ -132,7 +132,7 @@ class StubCode : public AllStatic {
Code* code;
const char* name;
#if !defined(DART_PRECOMPILED_RUNTIME)
void (compiler::StubCodeCompiler::* generator)();
void (compiler::StubCodeCompiler::*generator)();
#endif
};
static StubCodeEntry entries_[kNumStubEntries];
Expand Down

0 comments on commit 2a96956

Please sign in to comment.