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

Side by Side Diff: src/objects.h

Issue 133693002: Merged r18307 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: merge r18309 too 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.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 5131 matching lines...) Expand 10 before | Expand all | Expand 10 after
5142 inline bool is_store_stub() { return kind() == STORE_IC; } 5142 inline bool is_store_stub() { return kind() == STORE_IC; }
5143 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } 5143 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; }
5144 inline bool is_call_stub() { return kind() == CALL_IC; } 5144 inline bool is_call_stub() { return kind() == CALL_IC; }
5145 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } 5145 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; }
5146 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 5146 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
5147 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 5147 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
5148 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } 5148 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; }
5149 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 5149 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
5150 inline bool is_keyed_stub(); 5150 inline bool is_keyed_stub();
5151 5151
5152 inline void set_raw_kind_specific_flags1(int value);
5153 inline void set_raw_kind_specific_flags2(int value);
5154
5152 // [major_key]: For kind STUB or BINARY_OP_IC, the major key. 5155 // [major_key]: For kind STUB or BINARY_OP_IC, the major key.
5153 inline int major_key(); 5156 inline int major_key();
5154 inline void set_major_key(int value); 5157 inline void set_major_key(int value);
5155 inline bool has_major_key(); 5158 inline bool has_major_key();
5156 5159
5157 // For kind STUB or ICs, tells whether or not a code object was generated by 5160 // For kind STUB or ICs, tells whether or not a code object was generated by
5158 // the optimizing compiler (but it may not be an optimized function). 5161 // the optimizing compiler (but it may not be an optimized function).
5159 bool is_crankshafted(); 5162 bool is_crankshafted();
5160 inline void set_is_crankshafted(bool value); 5163 inline void set_is_crankshafted(bool value);
5161 5164
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
6031 inline bool is_stable(); 6034 inline bool is_stable();
6032 inline void set_migration_target(bool value); 6035 inline void set_migration_target(bool value);
6033 inline bool is_migration_target(); 6036 inline bool is_migration_target();
6034 inline void deprecate(); 6037 inline void deprecate();
6035 inline bool is_deprecated(); 6038 inline bool is_deprecated();
6036 inline bool CanBeDeprecated(); 6039 inline bool CanBeDeprecated();
6037 // Returns a non-deprecated version of the input. If the input was not 6040 // Returns a non-deprecated version of the input. If the input was not
6038 // deprecated, it is directly returned. Otherwise, the non-deprecated version 6041 // 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 6042 // 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. 6043 // descriptor array of the map. Returns NULL if no updated map is found.
6041 Map* CurrentMapForDeprecated(); 6044 // This method also applies any pending migrations along the prototype chain.
6045 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map);
6046 // Same as above, but does not touch the prototype chain.
6047 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map);
6042 6048
6043 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); 6049 static Handle<Map> RawCopy(Handle<Map> map, int instance_size);
6044 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 6050 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
6045 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 6051 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
6046 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 6052 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
6047 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 6053 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
6048 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, 6054 static Handle<Map> CopyReplaceDescriptors(Handle<Map> map,
6049 Handle<DescriptorArray> descriptors, 6055 Handle<DescriptorArray> descriptors,
6050 TransitionFlag flag, 6056 TransitionFlag flag,
6051 Handle<Name> name); 6057 Handle<Name> name);
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after
10612 } else { 10618 } else {
10613 value &= ~(1 << bit_position); 10619 value &= ~(1 << bit_position);
10614 } 10620 }
10615 return value; 10621 return value;
10616 } 10622 }
10617 }; 10623 };
10618 10624
10619 } } // namespace v8::internal 10625 } } // namespace v8::internal
10620 10626
10621 #endif // V8_OBJECTS_H_ 10627 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698