| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 6498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6509 DCHECK(this->data()->IsFixedArray()); | 6509 DCHECK(this->data()->IsFixedArray()); |
| 6510 Object* data = this->data(); | 6510 Object* data = this->data(); |
| 6511 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kFlagsIndex)); | 6511 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kFlagsIndex)); |
| 6512 return Flags(smi->value()); | 6512 return Flags(smi->value()); |
| 6513 } | 6513 } |
| 6514 | 6514 |
| 6515 | 6515 |
| 6516 String* JSRegExp::Pattern() { | 6516 String* JSRegExp::Pattern() { |
| 6517 DCHECK(this->data()->IsFixedArray()); | 6517 DCHECK(this->data()->IsFixedArray()); |
| 6518 Object* data = this->data(); | 6518 Object* data = this->data(); |
| 6519 String* pattern= String::cast(FixedArray::cast(data)->get(kSourceIndex)); | 6519 String* pattern = String::cast(FixedArray::cast(data)->get(kSourceIndex)); |
| 6520 return pattern; | 6520 return pattern; |
| 6521 } | 6521 } |
| 6522 | 6522 |
| 6523 | 6523 |
| 6524 Object* JSRegExp::DataAt(int index) { | 6524 Object* JSRegExp::DataAt(int index) { |
| 6525 DCHECK(TypeTag() != NOT_COMPILED); | 6525 DCHECK(TypeTag() != NOT_COMPILED); |
| 6526 return FixedArray::cast(data())->get(index); | 6526 return FixedArray::cast(data())->get(index); |
| 6527 } | 6527 } |
| 6528 | 6528 |
| 6529 | 6529 |
| (...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7503 #undef READ_SHORT_FIELD | 7503 #undef READ_SHORT_FIELD |
| 7504 #undef WRITE_SHORT_FIELD | 7504 #undef WRITE_SHORT_FIELD |
| 7505 #undef READ_BYTE_FIELD | 7505 #undef READ_BYTE_FIELD |
| 7506 #undef WRITE_BYTE_FIELD | 7506 #undef WRITE_BYTE_FIELD |
| 7507 #undef NOBARRIER_READ_BYTE_FIELD | 7507 #undef NOBARRIER_READ_BYTE_FIELD |
| 7508 #undef NOBARRIER_WRITE_BYTE_FIELD | 7508 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7509 | 7509 |
| 7510 } } // namespace v8::internal | 7510 } } // namespace v8::internal |
| 7511 | 7511 |
| 7512 #endif // V8_OBJECTS_INL_H_ | 7512 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |