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

Side by Side Diff: src/transitions.h

Issue 10802048: Removed recording of Target Slot in transition arrays since they only contain maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment. Created 8 years, 4 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.cc ('k') | src/transitions-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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // [length() - kTransitionSize] Last transition 46 // [length() - kTransitionSize] Last transition
47 class TransitionArray: public FixedArray { 47 class TransitionArray: public FixedArray {
48 public: 48 public:
49 // Accessors for fetching instance transition at transition number. 49 // Accessors for fetching instance transition at transition number.
50 inline String* GetKey(int transition_number); 50 inline String* GetKey(int transition_number);
51 inline void SetKey(int transition_number, String* value); 51 inline void SetKey(int transition_number, String* value);
52 inline Object** GetKeySlot(int transition_number); 52 inline Object** GetKeySlot(int transition_number);
53 53
54 inline Map* GetTarget(int transition_number); 54 inline Map* GetTarget(int transition_number);
55 inline void SetTarget(int transition_number, Map* target); 55 inline void SetTarget(int transition_number, Map* target);
56 inline Object** GetTargetSlot(int transition_number);
57 56
58 inline PropertyDetails GetTargetDetails(int transition_number); 57 inline PropertyDetails GetTargetDetails(int transition_number);
59 58
60 inline Map* elements_transition(); 59 inline Map* elements_transition();
61 inline void set_elements_transition( 60 inline void set_elements_transition(
62 Map* target, 61 Map* target,
63 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 62 WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
64 inline bool HasElementsTransition(); 63 inline bool HasElementsTransition();
65 inline void ClearElementsTransition(); 64 inline void ClearElementsTransition();
66 65
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 Map* target, 158 Map* target,
160 const WhitenessWitness&); 159 const WhitenessWitness&);
161 160
162 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray); 161 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray);
163 }; 162 };
164 163
165 164
166 } } // namespace v8::internal 165 } } // namespace v8::internal
167 166
168 #endif // V8_TRANSITIONS_H_ 167 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/transitions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698