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

Side by Side Diff: src/objects.h

Issue 104903002: Generalize AllocationMemento::FindForHeapObject and remove corresponding new space check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | 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 8238 matching lines...) Expand 10 before | Expand all | Expand 10 after
8249 } 8249 }
8250 AllocationSite* GetAllocationSite() { 8250 AllocationSite* GetAllocationSite() {
8251 ASSERT(IsValid()); 8251 ASSERT(IsValid());
8252 return AllocationSite::cast(allocation_site()); 8252 return AllocationSite::cast(allocation_site());
8253 } 8253 }
8254 8254
8255 DECLARE_PRINTER(AllocationMemento) 8255 DECLARE_PRINTER(AllocationMemento)
8256 DECLARE_VERIFIER(AllocationMemento) 8256 DECLARE_VERIFIER(AllocationMemento)
8257 8257
8258 // Returns NULL if no AllocationMemento is available for object. 8258 // Returns NULL if no AllocationMemento is available for object.
8259 static AllocationMemento* FindForJSObject(JSObject* object, 8259 static AllocationMemento* FindForHeapObject(HeapObject* object,
8260 bool in_GC = false); 8260 bool in_GC = false);
8261 static inline AllocationMemento* cast(Object* obj); 8261 static inline AllocationMemento* cast(Object* obj);
8262 8262
8263 private: 8263 private:
8264 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); 8264 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento);
8265 }; 8265 };
8266 8266
8267 8267
8268 // Representation of a slow alias as part of a non-strict arguments objects. 8268 // Representation of a slow alias as part of a non-strict arguments objects.
8269 // For fast aliases (if HasNonStrictArgumentsElements()): 8269 // For fast aliases (if HasNonStrictArgumentsElements()):
8270 // - the parameter map contains an index into the context 8270 // - the parameter map contains an index into the context
(...skipping 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after
10612 } else { 10612 } else {
10613 value &= ~(1 << bit_position); 10613 value &= ~(1 << bit_position);
10614 } 10614 }
10615 return value; 10615 return value;
10616 } 10616 }
10617 }; 10617 };
10618 10618
10619 } } // namespace v8::internal 10619 } } // namespace v8::internal
10620 10620
10621 #endif // V8_OBJECTS_H_ 10621 #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