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

Side by Side Diff: src/objects.h

Issue 136633002: Inline AllocationMemento::FindForHeapObject() into the two call sites. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/heap-inl.h ('k') | src/objects.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 // 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 8287 matching lines...) Expand 10 before | Expand all | Expand 10 after
8298 !AllocationSite::cast(allocation_site())->IsZombie(); 8298 !AllocationSite::cast(allocation_site())->IsZombie();
8299 } 8299 }
8300 AllocationSite* GetAllocationSite() { 8300 AllocationSite* GetAllocationSite() {
8301 ASSERT(IsValid()); 8301 ASSERT(IsValid());
8302 return AllocationSite::cast(allocation_site()); 8302 return AllocationSite::cast(allocation_site());
8303 } 8303 }
8304 8304
8305 DECLARE_PRINTER(AllocationMemento) 8305 DECLARE_PRINTER(AllocationMemento)
8306 DECLARE_VERIFIER(AllocationMemento) 8306 DECLARE_VERIFIER(AllocationMemento)
8307 8307
8308 // Returns NULL if no AllocationMemento is available for object.
8309 static AllocationMemento* FindForHeapObject(HeapObject* object,
8310 Heap* heap,
8311 bool in_GC = false);
8312 static inline AllocationMemento* cast(Object* obj); 8308 static inline AllocationMemento* cast(Object* obj);
8313 8309
8314 private: 8310 private:
8315 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); 8311 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento);
8316 }; 8312 };
8317 8313
8318 8314
8319 // Representation of a slow alias as part of a non-strict arguments objects. 8315 // Representation of a slow alias as part of a non-strict arguments objects.
8320 // For fast aliases (if HasNonStrictArgumentsElements()): 8316 // For fast aliases (if HasNonStrictArgumentsElements()):
8321 // - the parameter map contains an index into the context 8317 // - the parameter map contains an index into the context
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
10658 } else { 10654 } else {
10659 value &= ~(1 << bit_position); 10655 value &= ~(1 << bit_position);
10660 } 10656 }
10661 return value; 10657 return value;
10662 } 10658 }
10663 }; 10659 };
10664 10660
10665 } } // namespace v8::internal 10661 } } // namespace v8::internal
10666 10662
10667 #endif // V8_OBJECTS_H_ 10663 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698