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

Side by Side Diff: src/objects.h

Issue 104793003: Fix polymorphic inlined calls with migrating prototypes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed inefficient recursion 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/ast.cc ('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 6020 matching lines...) Expand 10 before | Expand all | Expand 10 after
6031 inline bool is_stable(); 6031 inline bool is_stable();
6032 inline void set_migration_target(bool value); 6032 inline void set_migration_target(bool value);
6033 inline bool is_migration_target(); 6033 inline bool is_migration_target();
6034 inline void deprecate(); 6034 inline void deprecate();
6035 inline bool is_deprecated(); 6035 inline bool is_deprecated();
6036 inline bool CanBeDeprecated(); 6036 inline bool CanBeDeprecated();
6037 // Returns a non-deprecated version of the input. If the input was not 6037 // Returns a non-deprecated version of the input. If the input was not
6038 // deprecated, it is directly returned. Otherwise, the non-deprecated version 6038 // deprecated, it is directly returned. Otherwise, the non-deprecated version
6039 // is found by re-transitioning from the root of the transition tree using the 6039 // is found by re-transitioning from the root of the transition tree using the
6040 // descriptor array of the map. Returns NULL if no updated map is found. 6040 // descriptor array of the map. Returns NULL if no updated map is found.
6041 Map* CurrentMapForDeprecated(); 6041 // This method also applies any pending migrations along the prototype chain.
6042 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map);
6043 // Same as above, but does not touch the prototype chain.
6044 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map);
6042 6045
6043 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); 6046 static Handle<Map> RawCopy(Handle<Map> map, int instance_size);
6044 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 6047 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
6045 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 6048 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
6046 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 6049 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
6047 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 6050 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
6048 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, 6051 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map,
6049 Handle<DescriptorArray> descriptors, 6052 Handle<DescriptorArray> descriptors,
6050 TransitionFlag flag, 6053 TransitionFlag flag,
6051 Handle<Name> name); 6054 Handle<Name> name);
(...skipping 4554 matching lines...) Expand 10 before | Expand all | Expand 10 after
10606 } else { 10609 } else {
10607 value &= ~(1 << bit_position); 10610 value &= ~(1 << bit_position);
10608 } 10611 }
10609 return value; 10612 return value;
10610 } 10613 }
10611 }; 10614 };
10612 10615
10613 } } // namespace v8::internal 10616 } } // namespace v8::internal
10614 10617
10615 #endif // V8_OBJECTS_H_ 10618 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698