Fixed some outstanding formatting issues.
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@846 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
fe591b0ab5
commit
b8013e590f
@ -50,8 +50,7 @@ namespace v8 { namespace internal {
|
||||
|
||||
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; }
|
||||
|
@ -195,7 +195,7 @@ FOR_EACH_REG_EXP_TREE_TYPE(MAKE_ACCEPT)
|
||||
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) \
|
||||
|
@ -1365,7 +1365,10 @@ class RegExpQuantifier: public RegExpTree {
|
||||
|
||||
|
||||
enum CaptureAvailability {
|
||||
CAPTURE_AVAILABLE, CAPTURE_UNREACHABLE, CAPTURE_PERMANENTLY_UNREACHABLE };
|
||||
CAPTURE_AVAILABLE,
|
||||
CAPTURE_UNREACHABLE,
|
||||
CAPTURE_PERMANENTLY_UNREACHABLE
|
||||
};
|
||||
|
||||
class RegExpCapture: public RegExpTree {
|
||||
public:
|
||||
|
@ -33,8 +33,7 @@
|
||||
#include "regexp-macro-assembler.h"
|
||||
|
||||
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
namespace v8 { namespace internal {
|
||||
|
||||
|
||||
template <typename C>
|
||||
@ -259,8 +258,7 @@ void RegExpNode::Bind(RegExpMacroAssembler* macro) {
|
||||
}
|
||||
|
||||
|
||||
} // namespace internal
|
||||
} // namespace v8
|
||||
}} // namespace v8::internal
|
||||
|
||||
|
||||
#endif // V8_JSREGEXP_INL_H_
|
||||
|
@ -516,11 +516,6 @@ Handle<Object> RegExpImpl::IrregexpExecOnce(Handle<JSRegExp> regexp,
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
case RegExpMacroAssembler::kARMImplementation:
|
||||
UNREACHABLE();
|
||||
rc = false;
|
||||
break;
|
||||
case RegExpMacroAssembler::kBytecodeImplementation: {
|
||||
Handle<ByteArray> byte_codes = IrregexpCode(regexp);
|
||||
|
||||
@ -530,6 +525,11 @@ Handle<Object> RegExpImpl::IrregexpExecOnce(Handle<JSRegExp> regexp,
|
||||
previous_index);
|
||||
break;
|
||||
}
|
||||
case RegExpMacroAssembler::kARMImplementation:
|
||||
default:
|
||||
UNREACHABLE();
|
||||
rc = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -600,8 +600,8 @@ Handle<Object> RegExpImpl::JscreExecOnce(Handle<JSRegExp> regexp,
|
||||
|
||||
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 {
|
||||
@ -804,8 +804,7 @@ Handle<Object> RegExpImpl::JscreExecGlobal(Handle<JSRegExp> regexp,
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user