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

Side by Side Diff: src/objects.cc

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sync and Rebase Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('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 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 9439 matching lines...) Expand 10 before | Expand all | Expand 10 after
9450 9450
9451 bool Map::EquivalentToForNormalization(Map* other, 9451 bool Map::EquivalentToForNormalization(Map* other,
9452 PropertyNormalizationMode mode) { 9452 PropertyNormalizationMode mode) {
9453 int properties = mode == CLEAR_INOBJECT_PROPERTIES 9453 int properties = mode == CLEAR_INOBJECT_PROPERTIES
9454 ? 0 : other->inobject_properties(); 9454 ? 0 : other->inobject_properties();
9455 return CheckEquivalent(this, other) && inobject_properties() == properties; 9455 return CheckEquivalent(this, other) && inobject_properties() == properties;
9456 } 9456 }
9457 9457
9458 9458
9459 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { 9459 void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) {
9460 int first_ptr_offset = OffsetOfElementAt(first_ptr_index()); 9460 if (count_of_ptr_entries() > 0) {
9461 int last_ptr_offset = 9461 int first_ptr_offset = OffsetOfElementAt(first_ptr_index());
9462 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries()); 9462 int last_ptr_offset =
9463 v->VisitPointers( 9463 OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries());
9464 HeapObject::RawField(this, first_ptr_offset), 9464 v->VisitPointers(
9465 HeapObject::RawField(this, last_ptr_offset)); 9465 HeapObject::RawField(this, first_ptr_offset),
9466 HeapObject::RawField(this, last_ptr_offset));
9467 }
9466 } 9468 }
9467 9469
9468 9470
9469 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) { 9471 void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) {
9470 // Iterate over all fields in the body but take care in dealing with 9472 // Iterate over all fields in the body but take care in dealing with
9471 // the code entry. 9473 // the code entry.
9472 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); 9474 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset);
9473 v->VisitCodeEntry(this->address() + kCodeEntryOffset); 9475 v->VisitCodeEntry(this->address() + kCodeEntryOffset);
9474 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); 9476 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size);
9475 } 9477 }
(...skipping 7148 matching lines...) Expand 10 before | Expand all | Expand 10 after
16624 #define ERROR_MESSAGES_TEXTS(C, T) T, 16626 #define ERROR_MESSAGES_TEXTS(C, T) T,
16625 static const char* error_messages_[] = { 16627 static const char* error_messages_[] = {
16626 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16628 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16627 }; 16629 };
16628 #undef ERROR_MESSAGES_TEXTS 16630 #undef ERROR_MESSAGES_TEXTS
16629 return error_messages_[reason]; 16631 return error_messages_[reason];
16630 } 16632 }
16631 16633
16632 16634
16633 } } // namespace v8::internal 16635 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698