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

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

Issue 7064029: Migrate flags from bit_field2 to bit_field3 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: just migrate a single flag Created 9 years, 7 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2533 } 2533 }
2534 } 2534 }
2535 2535
2536 bool Map::attached_to_shared_function_info() { 2536 bool Map::attached_to_shared_function_info() {
2537 return ((1 << kAttachedToSharedFunctionInfo) & bit_field2()) != 0; 2537 return ((1 << kAttachedToSharedFunctionInfo) & bit_field2()) != 0;
2538 } 2538 }
2539 2539
2540 2540
2541 void Map::set_is_shared(bool value) { 2541 void Map::set_is_shared(bool value) {
2542 if (value) { 2542 if (value) {
2543 set_bit_field2(bit_field2() | (1 << kIsShared)); 2543 set_bit_field3(bit_field3() | (1 << kIsShared));
2544 } else { 2544 } else {
2545 set_bit_field2(bit_field2() & ~(1 << kIsShared)); 2545 set_bit_field3(bit_field3() & ~(1 << kIsShared));
2546 } 2546 }
2547 } 2547 }
2548 2548
2549 bool Map::is_shared() { 2549 bool Map::is_shared() {
2550 return ((1 << kIsShared) & bit_field2()) != 0; 2550 return ((1 << kIsShared) & bit_field3()) != 0;
2551 } 2551 }
2552 2552
2553 2553
2554 JSFunction* Map::unchecked_constructor() { 2554 JSFunction* Map::unchecked_constructor() {
2555 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); 2555 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset));
2556 } 2556 }
2557 2557
2558 2558
2559 FixedArray* Map::unchecked_prototype_transitions() { 2559 FixedArray* Map::unchecked_prototype_transitions() {
2560 return reinterpret_cast<FixedArray*>( 2560 return reinterpret_cast<FixedArray*>(
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
4314 #undef WRITE_INT_FIELD 4314 #undef WRITE_INT_FIELD
4315 #undef READ_SHORT_FIELD 4315 #undef READ_SHORT_FIELD
4316 #undef WRITE_SHORT_FIELD 4316 #undef WRITE_SHORT_FIELD
4317 #undef READ_BYTE_FIELD 4317 #undef READ_BYTE_FIELD
4318 #undef WRITE_BYTE_FIELD 4318 #undef WRITE_BYTE_FIELD
4319 4319
4320 4320
4321 } } // namespace v8::internal 4321 } } // namespace v8::internal
4322 4322
4323 #endif // V8_OBJECTS_INL_H_ 4323 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698