Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: src/objects-inl.h

Issue 783913003: Make cpplint happy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/constants-mips64.h ('k') | src/v8threads.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/mips64/constants-mips64.h ('k') | src/v8threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698