OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 9434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9445 | 9445 |
9446 bool Map::EquivalentToForNormalization(Map* other, | 9446 bool Map::EquivalentToForNormalization(Map* other, |
9447 PropertyNormalizationMode mode) { | 9447 PropertyNormalizationMode mode) { |
9448 int properties = mode == CLEAR_INOBJECT_PROPERTIES | 9448 int properties = mode == CLEAR_INOBJECT_PROPERTIES |
9449 ? 0 : other->inobject_properties(); | 9449 ? 0 : other->inobject_properties(); |
9450 return CheckEquivalent(this, other) && inobject_properties() == properties; | 9450 return CheckEquivalent(this, other) && inobject_properties() == properties; |
9451 } | 9451 } |
9452 | 9452 |
9453 | 9453 |
9454 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { | 9454 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { |
9455 int first_ptr_offset = OffsetOfElementAt(first_ptr_index()); | 9455 if (count_of_ptr_entries() > 0) { |
9456 int last_ptr_offset = | 9456 int first_ptr_offset = OffsetOfElementAt(first_ptr_index()); |
9457 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries()); | 9457 int last_ptr_offset = |
9458 v->VisitPointers( | 9458 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries()); |
9459 HeapObject::RawField(this, first_ptr_offset), | 9459 v->VisitPointers( |
9460 HeapObject::RawField(this, last_ptr_offset)); | 9460 HeapObject::RawField(this, first_ptr_offset), |
| 9461 HeapObject::RawField(this, last_ptr_offset)); |
| 9462 } |
9461 } | 9463 } |
9462 | 9464 |
9463 | 9465 |
9464 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { | 9466 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { |
9465 // Iterate over all fields in the body but take care in dealing with | 9467 // Iterate over all fields in the body but take care in dealing with |
9466 // the code entry. | 9468 // the code entry. |
9467 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); | 9469 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); |
9468 v->VisitCodeEntry(this->address() + kCodeEntryOffset); | 9470 v->VisitCodeEntry(this->address() + kCodeEntryOffset); |
9469 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); | 9471 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); |
9470 } | 9472 } |
(...skipping 7180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16651 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16653 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16652 static const char* error_messages_[] = { | 16654 static const char* error_messages_[] = { |
16653 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16655 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16654 }; | 16656 }; |
16655 #undef ERROR_MESSAGES_TEXTS | 16657 #undef ERROR_MESSAGES_TEXTS |
16656 return error_messages_[reason]; | 16658 return error_messages_[reason]; |
16657 } | 16659 } |
16658 | 16660 |
16659 | 16661 |
16660 } } // namespace v8::internal | 16662 } } // namespace v8::internal |
OLD | NEW |