Author: [EMAIL PROTECTED] Date: Wed Nov 26 03:29:26 2008 New Revision: 846
Modified: branches/bleeding_edge/src/assembler.h branches/bleeding_edge/src/ast.cc branches/bleeding_edge/src/ast.h branches/bleeding_edge/src/jsregexp-inl.h branches/bleeding_edge/src/jsregexp.cc branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc Log: Fixed some outstanding formatting issues. Modified: branches/bleeding_edge/src/assembler.h ============================================================================== --- branches/bleeding_edge/src/assembler.h (original) +++ branches/bleeding_edge/src/assembler.h Wed Nov 26 03:29:26 2008 @@ -50,8 +50,7 @@ class Label : public ZoneObject { // LabelShadows are dynamically allocated. public: - INLINE(Label()) - { Unuse(); } + INLINE(Label()) { Unuse(); } INLINE(~Label()) { ASSERT(!is_linked()); } INLINE(void Unuse()) { pos_ = 0; } Modified: branches/bleeding_edge/src/ast.cc ============================================================================== --- branches/bleeding_edge/src/ast.cc (original) +++ branches/bleeding_edge/src/ast.cc Wed Nov 26 03:29:26 2008 @@ -195,7 +195,7 @@ return NULL; \ } \ bool RegExpTree::Is##Name() { return false; } - FOR_EACH_REG_EXP_TREE_TYPE(MAKE_TYPE_CASE) +FOR_EACH_REG_EXP_TREE_TYPE(MAKE_TYPE_CASE) #undef MAKE_TYPE_CASE #define MAKE_TYPE_CASE(Name) \ Modified: branches/bleeding_edge/src/ast.h ============================================================================== --- branches/bleeding_edge/src/ast.h (original) +++ branches/bleeding_edge/src/ast.h Wed Nov 26 03:29:26 2008 @@ -1365,7 +1365,10 @@ enum CaptureAvailability { - CAPTURE_AVAILABLE, CAPTURE_UNREACHABLE, CAPTURE_PERMANENTLY_UNREACHABLE }; + CAPTURE_AVAILABLE, + CAPTURE_UNREACHABLE, + CAPTURE_PERMANENTLY_UNREACHABLE +}; class RegExpCapture: public RegExpTree { public: Modified: branches/bleeding_edge/src/jsregexp-inl.h ============================================================================== --- branches/bleeding_edge/src/jsregexp-inl.h (original) +++ branches/bleeding_edge/src/jsregexp-inl.h Wed Nov 26 03:29:26 2008 @@ -33,8 +33,7 @@ #include "regexp-macro-assembler.h" -namespace v8 { -namespace internal { +namespace v8 { namespace internal { template <typename C> @@ -259,8 +258,7 @@ } -} // namespace internal -} // namespace v8 +}} // namespace v8::internal #endif // V8_JSREGEXP_INL_H_ Modified: branches/bleeding_edge/src/jsregexp.cc ============================================================================== --- branches/bleeding_edge/src/jsregexp.cc (original) +++ branches/bleeding_edge/src/jsregexp.cc Wed Nov 26 03:29:26 2008 @@ -516,11 +516,6 @@ } break; } - default: - case RegExpMacroAssembler::kARMImplementation: - UNREACHABLE(); - rc = false; - break; case RegExpMacroAssembler::kBytecodeImplementation: { Handle<ByteArray> byte_codes = IrregexpCode(regexp); @@ -530,6 +525,11 @@ previous_index); break; } + case RegExpMacroAssembler::kARMImplementation: + default: + UNREACHABLE(); + rc = false; + break; } } @@ -600,8 +600,8 @@ class OffsetsVector { public: - inline OffsetsVector(int num_registers) : - offsets_vector_length_(num_registers) { + inline OffsetsVector(int num_registers) + : offsets_vector_length_(num_registers) { if (offsets_vector_length_ > kStaticOffsetsVectorSize) { vector_ = NewArray<int>(offsets_vector_length_); } else { @@ -640,8 +640,8 @@ Handle<Object> RegExpImpl::IrregexpExec(Handle<JSRegExp> regexp, - Handle<String> subject, - Handle<Object> index) { + Handle<String> subject, + Handle<Object> index) { ASSERT_EQ(regexp->TypeTag(), JSRegExp::IRREGEXP); ASSERT(!regexp->DataAt(JSRegExp::kIrregexpDataIndex)->IsUndefined()); @@ -804,8 +804,7 @@ int RegExpImpl::JscreNumberOfCaptures(Handle<JSRegExp> re) { FixedArray* value = FixedArray::cast(re->DataAt(JSRegExp::kJscreDataIndex)); - return Smi::cast(value->get(kJscreNumberOfCapturesIndex))-> - value(); + return Smi::cast(value->get(kJscreNumberOfCapturesIndex))-> value(); } Modified: branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc ============================================================================== --- branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc (original) +++ branches/bleeding_edge/src/regexp-macro-assembler-ia32.cc Wed Nov 26 03:29:26 2008 @@ -78,16 +78,16 @@ RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32( Mode mode, int registers_to_save) - : masm_(new MacroAssembler(NULL, kRegExpCodeSize)), - constants_(kRegExpConstantsSize), - mode_(mode), - num_registers_(registers_to_save), - num_saved_registers_(registers_to_save), - entry_label_(), - start_label_(), - success_label_(), - exit_label_(), - self_(Heap::undefined_value()) { + : masm_(new MacroAssembler(NULL, kRegExpCodeSize)), + constants_(kRegExpConstantsSize), + mode_(mode), + num_registers_(registers_to_save), + num_saved_registers_(registers_to_save), + entry_label_(), + start_label_(), + success_label_(), + exit_label_(), + self_(Heap::undefined_value()) { __ jmp(&entry_label_); // We'll write the entry code later. __ bind(&start_label_); // And then continue from here. } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---