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 9438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9449 | 9449 |
9450 bool Map::EquivalentToForNormalization(Map* other, | 9450 bool Map::EquivalentToForNormalization(Map* other, |
9451 PropertyNormalizationMode mode) { | 9451 PropertyNormalizationMode mode) { |
9452 int properties = mode == CLEAR_INOBJECT_PROPERTIES | 9452 int properties = mode == CLEAR_INOBJECT_PROPERTIES |
9453 ? 0 : other->inobject_properties(); | 9453 ? 0 : other->inobject_properties(); |
9454 return CheckEquivalent(this, other) && inobject_properties() == properties; | 9454 return CheckEquivalent(this, other) && inobject_properties() == properties; |
9455 } | 9455 } |
9456 | 9456 |
9457 | 9457 |
9458 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { | 9458 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { |
9459 int first_ptr_offset = OffsetOfElementAt(first_ptr_index()); | 9459 if (count_of_ptr_entries() > 0) { |
9460 int last_ptr_offset = | 9460 int first_ptr_offset = OffsetOfElementAt(first_ptr_index()); |
9461 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries()); | 9461 int last_ptr_offset = |
9462 v->VisitPointers( | 9462 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries()); |
9463 HeapObject::RawField(this, first_ptr_offset), | 9463 v->VisitPointers( |
9464 HeapObject::RawField(this, last_ptr_offset)); | 9464 HeapObject::RawField(this, first_ptr_offset), |
| 9465 HeapObject::RawField(this, last_ptr_offset)); |
| 9466 } |
9465 } | 9467 } |
9466 | 9468 |
9467 | 9469 |
9468 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { | 9470 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { |
9469 // Iterate over all fields in the body but take care in dealing with | 9471 // Iterate over all fields in the body but take care in dealing with |
9470 // the code entry. | 9472 // the code entry. |
9471 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); | 9473 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); |
9472 v->VisitCodeEntry(this->address() + kCodeEntryOffset); | 9474 v->VisitCodeEntry(this->address() + kCodeEntryOffset); |
9473 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); | 9475 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); |
9474 } | 9476 } |
(...skipping 7177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16652 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16654 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16653 static const char* error_messages_[] = { | 16655 static const char* error_messages_[] = { |
16654 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16656 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16655 }; | 16657 }; |
16656 #undef ERROR_MESSAGES_TEXTS | 16658 #undef ERROR_MESSAGES_TEXTS |
16657 return error_messages_[reason]; | 16659 return error_messages_[reason]; |
16658 } | 16660 } |
16659 | 16661 |
16660 | 16662 |
16661 } } // namespace v8::internal | 16663 } } // namespace v8::internal |
OLD | NEW |