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

Side by Side Diff: src/objects-inl.h

Issue 19257002: Fix --track_gc_object_stats option. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Daniel's comments. Created 7 years, 5 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
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 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after
3598 3598
3599 3599
3600 void Map::freeze() { 3600 void Map::freeze() {
3601 set_bit_field3(IsFrozen::update(bit_field3(), true)); 3601 set_bit_field3(IsFrozen::update(bit_field3(), true));
3602 } 3602 }
3603 3603
3604 3604
3605 bool Map::is_frozen() { 3605 bool Map::is_frozen() {
3606 return IsFrozen::decode(bit_field3()); 3606 return IsFrozen::decode(bit_field3());
3607 } 3607 }
3608 3608
Hannes Payer (out of office) 2013/07/16 14:39:28 add newline
rmcilroy_google 2013/07/16 15:03:01 Done.
3609 bool Map::has_code_cache() {
3610 return code_cache() != GetIsolate()->heap()->empty_fixed_array();
3611 }
3609 3612
Hannes Payer (out of office) 2013/07/16 14:39:28 add newline
rmcilroy_google 2013/07/16 15:03:01 Done.
3610 bool Map::CanBeDeprecated() { 3613 bool Map::CanBeDeprecated() {
3611 int descriptor = LastAdded(); 3614 int descriptor = LastAdded();
3612 for (int i = 0; i <= descriptor; i++) { 3615 for (int i = 0; i <= descriptor; i++) {
3613 PropertyDetails details = instance_descriptors()->GetDetails(i); 3616 PropertyDetails details = instance_descriptors()->GetDetails(i);
3614 if (FLAG_track_fields && details.representation().IsNone()) { 3617 if (FLAG_track_fields && details.representation().IsNone()) {
3615 return true; 3618 return true;
3616 } 3619 }
3617 if (FLAG_track_fields && details.representation().IsSmi()) { 3620 if (FLAG_track_fields && details.representation().IsSmi()) {
3618 return true; 3621 return true;
3619 } 3622 }
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
4337 return transition_array; 4340 return transition_array;
4338 } 4341 }
4339 4342
4340 4343
4341 HeapObject* Map::UncheckedPrototypeTransitions() { 4344 HeapObject* Map::UncheckedPrototypeTransitions() {
4342 ASSERT(HasTransitionArray()); 4345 ASSERT(HasTransitionArray());
4343 ASSERT(unchecked_transition_array()->HasPrototypeTransitions()); 4346 ASSERT(unchecked_transition_array()->HasPrototypeTransitions());
4344 return unchecked_transition_array()->UncheckedPrototypeTransitions(); 4347 return unchecked_transition_array()->UncheckedPrototypeTransitions();
4345 } 4348 }
4346 4349
4347
danno 2013/07/16 14:20:34 Can you please remove this whitespace change?
rmcilroy_google 2013/07/16 15:03:01 Opps, Done.
4348 ACCESSORS(Map, code_cache, Object, kCodeCacheOffset) 4350 ACCESSORS(Map, code_cache, Object, kCodeCacheOffset)
4349 ACCESSORS(Map, dependent_code, DependentCode, kDependentCodeOffset) 4351 ACCESSORS(Map, dependent_code, DependentCode, kDependentCodeOffset)
4350 ACCESSORS(Map, constructor, Object, kConstructorOffset) 4352 ACCESSORS(Map, constructor, Object, kConstructorOffset)
4351 4353
4352 ACCESSORS(JSFunction, shared, SharedFunctionInfo, kSharedFunctionInfoOffset) 4354 ACCESSORS(JSFunction, shared, SharedFunctionInfo, kSharedFunctionInfoOffset)
4353 ACCESSORS(JSFunction, literals_or_bindings, FixedArray, kLiteralsOffset) 4355 ACCESSORS(JSFunction, literals_or_bindings, FixedArray, kLiteralsOffset)
4354 ACCESSORS(JSFunction, next_function_link, Object, kNextFunctionLinkOffset) 4356 ACCESSORS(JSFunction, next_function_link, Object, kNextFunctionLinkOffset)
4355 4357
4356 ACCESSORS(GlobalObject, builtins, JSBuiltinsObject, kBuiltinsOffset) 4358 ACCESSORS(GlobalObject, builtins, JSBuiltinsObject, kBuiltinsOffset)
4357 ACCESSORS(GlobalObject, native_context, Context, kNativeContextOffset) 4359 ACCESSORS(GlobalObject, native_context, Context, kNativeContextOffset)
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
6181 #undef WRITE_UINT32_FIELD 6183 #undef WRITE_UINT32_FIELD
6182 #undef READ_SHORT_FIELD 6184 #undef READ_SHORT_FIELD
6183 #undef WRITE_SHORT_FIELD 6185 #undef WRITE_SHORT_FIELD
6184 #undef READ_BYTE_FIELD 6186 #undef READ_BYTE_FIELD
6185 #undef WRITE_BYTE_FIELD 6187 #undef WRITE_BYTE_FIELD
6186 6188
6187 6189
6188 } } // namespace v8::internal 6190 } } // namespace v8::internal
6189 6191
6190 #endif // V8_OBJECTS_INL_H_ 6192 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | src/v8-counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698