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

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

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Quick adjustment to bit fields Created 7 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/objects.cc ('k') | src/runtime.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 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after
3371 JSFunction* Map::unchecked_constructor() { 3371 JSFunction* Map::unchecked_constructor() {
3372 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); 3372 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset));
3373 } 3373 }
3374 3374
3375 3375
3376 Code::Flags Code::flags() { 3376 Code::Flags Code::flags() {
3377 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); 3377 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset));
3378 } 3378 }
3379 3379
3380 3380
3381 inline bool Map::CanTrackAllocationSite() {
3382 return instance_type() == JS_ARRAY_TYPE;
3383 }
3384
3385
3381 void Map::set_owns_descriptors(bool is_shared) { 3386 void Map::set_owns_descriptors(bool is_shared) {
3382 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); 3387 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared));
3383 } 3388 }
3384 3389
3385 3390
3386 bool Map::owns_descriptors() { 3391 bool Map::owns_descriptors() {
3387 return OwnsDescriptors::decode(bit_field3()); 3392 return OwnsDescriptors::decode(bit_field3());
3388 } 3393 }
3389 3394
3390 3395
(...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 #undef WRITE_UINT32_FIELD 5810 #undef WRITE_UINT32_FIELD
5806 #undef READ_SHORT_FIELD 5811 #undef READ_SHORT_FIELD
5807 #undef WRITE_SHORT_FIELD 5812 #undef WRITE_SHORT_FIELD
5808 #undef READ_BYTE_FIELD 5813 #undef READ_BYTE_FIELD
5809 #undef WRITE_BYTE_FIELD 5814 #undef WRITE_BYTE_FIELD
5810 5815
5811 5816
5812 } } // namespace v8::internal 5817 } } // namespace v8::internal
5813 5818
5814 #endif // V8_OBJECTS_INL_H_ 5819 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698