Register result =
is_smi ? ToRegister(instr->result()) : ToRegister32(instr->result());
Register left =
- is_smi ? ToRegister(instr->left()) : ToRegister32(instr->left()) ;
+ is_smi ? ToRegister(instr->left()) : ToRegister32(instr->left());
int32_t right = ToInteger32(instr->right());
DCHECK((right > -kMaxInt) && (right < kMaxInt));
#else
if (value == 0) return 32;
unsigned count = 0;
- for (value ^= value - 1; value >>= 1; ++count)
- ;
+ for (value ^= value - 1; value >>= 1; ++count) {
+ }
return count;
#endif
}
#else
if (value == 0) return 64;
unsigned count = 0;
- for (value ^= value - 1; value >>= 1; ++count)
- ;
+ for (value ^= value - 1; value >>= 1; ++count) {
+ }
return count;
#endif
}
mutex->Unlock();
// Wait on the wait event.
- while (!event->WaitFor(INFINITE))
- ;
+ while (!event->WaitFor(INFINITE)) {
+ }
// Reaquire the user mutex.
mutex->Lock();
void set_live_edit_enabled(bool v) { live_edit_enabled_ = v; }
bool live_edit_enabled() const {
- return FLAG_enable_liveedit && live_edit_enabled_ ;
+ return FLAG_enable_liveedit && live_edit_enabled_;
}
inline bool is_active() const { return is_active_; }
// Do not transform the receiver for strict mode functions.
int32_t strict_mode_function_mask =
- 1 << SharedFunctionInfo::kStrictModeBitWithinByte ;
+ 1 << SharedFunctionInfo::kStrictModeBitWithinByte;
// Do not transform the receiver for native (Compilerhints already in a3).
int32_t native_mask = 1 << SharedFunctionInfo::kNativeBitWithinByte;
if (save_doubles) {
// The stack is already aligned to 0 modulo 8 for stores with sdc1.
int kNumOfSavedRegisters = FPURegister::kMaxNumRegisters / 2;
- int space = kNumOfSavedRegisters * kDoubleSize ;
+ int space = kNumOfSavedRegisters * kDoubleSize;
Dsubu(sp, sp, Operand(space));
// Remember: we only need to save every 2nd double FPU value.
for (int i = 0; i < kNumOfSavedRegisters; i++) {
Handle<FixedArrayBase> elements_base(object->elements());
uint32_t elements_length = static_cast<uint32_t>(elements_base->length());
if (limit > elements_length) {
- limit = elements_length ;
+ limit = elements_length;
}
if (limit == 0) {
return handle(Smi::FromInt(0), isolate);
int start_position = peek_position();
ParseLazyFunctionLiteralBody(&ok, bookmark);
if (bookmark && bookmark->HasBeenReset()) {
- ; // Do nothing, as we've just aborted scanning this function.
+ // Do nothing, as we've just aborted scanning this function.
} else if (stack_overflow()) {
return kPreParseStackOverflow;
} else if (!ok) {
DateCache* date_cache = isolate->date_cache();
Handle<Object> value;
- ;
bool is_value_nan = false;
if (std::isnan(time)) {
value = isolate->factory()->nan_value();
// Primitive hash function, almost identical to the one used
// for strings (except that it's seeded by the length and representation).
int length = key.length();
- uint32_t hash = (length << 1) | (is_one_byte ? 1 : 0) ;
+ uint32_t hash = (length << 1) | (is_one_byte ? 1 : 0);
for (int i = 0; i < length; i++) {
uint32_t c = key[i];
hash = (hash + c) * 1025;
static inline void EmptyMessageQueues(v8::Isolate* isolate) {
while (v8::platform::PumpMessageLoop(v8::internal::V8::GetCurrentPlatform(),
- isolate))
- ;
+ isolate)) {
+ }
}
"}};"
"var g = function() {"
" arguments.callee.displayName = 'set_in_runtime';"
- "}; g();"
- ;
+ "}; g();";
v8::ScriptOrigin origin =
v8::ScriptOrigin(v8::String::NewFromUtf8(env->GetIsolate(), "test"));
v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), code), &origin)
v8::HandleScope scope(context->GetIsolate());
TryCatch try_catch(context->GetIsolate());
- Handle<String> message = v8_str("Message") ;
+ Handle<String> message = v8_str("Message");
Handle<String> expected_message = v8_str("Uncaught EvalError: Message");
V8::SetAllowCodeGenerationFromStringsCallback(&CodeGenerationDisallowed);
context->AllowCodeGenerationFromStrings(false);
// Save registers make sure they don't get clobbered.
int source_reg_offset = kDoubleSize;
int reg_num = 0;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::from_code(reg_num);
if (!reg.is(destination_reg)) {
__ push(reg);
// Save registers make sure they don't get clobbered.
int source_reg_offset = kDoubleSize;
int reg_num = 0;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::from_code(reg_num);
if (!reg.is(destination_reg)) {
queue.Queue(reg);
int param_offset = 7 * kPointerSize;
// Save registers make sure they don't get clobbered.
int reg_num = 0;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::FromAllocationIndex(reg_num);
if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) {
__ push(reg);
// Save registers make sure they don't get clobbered.
int source_reg_offset = kDoubleSize;
int reg_num = 2;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::from_code(reg_num);
if (!reg.is(destination_reg)) {
__ push(reg);
// Save registers make sure they don't get clobbered.
int source_reg_offset = kDoubleSize;
int reg_num = 2;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::from_code(reg_num);
if (!reg.is(destination_reg)) {
__ push(reg);
// Save registers make sure they don't get clobbered.
int reg_num = 0;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::FromAllocationIndex(reg_num);
if (!reg.is(rsp) && !reg.is(rbp) && !reg.is(destination_reg)) {
__ pushq(reg);
int param_offset = 7 * kPointerSize;
// Save registers make sure they don't get clobbered.
int reg_num = 0;
- for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
+ for (; reg_num < Register::NumAllocatableRegisters(); ++reg_num) {
Register reg = Register::FromAllocationIndex(reg_num);
if (!reg.is(esp) && !reg.is(ebp) && !reg.is(destination_reg)) {
__ push(reg);
{ // Postpone terminate execution interrupts.
i::PostponeInterruptsScope p1(CcTest::i_isolate(),
- i::StackGuard::TERMINATE_EXECUTION) ;
+ i::StackGuard::TERMINATE_EXECUTION);
// API interrupts should still be triggered.
CcTest::isolate()->RequestInterrupt(&CounterCallback, NULL);
case 8: { // simd
static const int num_simd_types =
#define COUNT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) +1
- SIMD128_TYPES(COUNT_SIMD_TYPE)
+ SIMD128_TYPES(COUNT_SIMD_TYPE);
#undef COUNT_SIMD_TYPE
- ;
TypeHandle (*simd_constructors[num_simd_types])(Isolate*, Region*) = {
#define COUNT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \
&Type::Name,
Type* type2 = types_.Fuzz();
Type* type = TypeBinaryOp(op, type1, type2);
Type* subtype1 = RandomSubtype(type1);
- ;
Type* subtype2 = RandomSubtype(type2);
- ;
Type* subtype = TypeBinaryOp(op, subtype1, subtype2);
EXPECT_TRUE(subtype->Is(type));
}
-readability/nolint
+readability/streams
-runtime/references
--whitespace/semicolon
""".split()
LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing')