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

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

Issue 7189066: Simple non-incremental compaction by evacuation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 6 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 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 2433 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 bool Map::is_shared() { 2444 bool Map::is_shared() {
2445 return ((1 << kIsShared) & bit_field3()) != 0; 2445 return ((1 << kIsShared) & bit_field3()) != 0;
2446 } 2446 }
2447 2447
2448 2448
2449 JSFunction* Map::unchecked_constructor() { 2449 JSFunction* Map::unchecked_constructor() {
2450 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); 2450 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset));
2451 } 2451 }
2452 2452
2453 2453
2454 FixedArray* Map::unchecked_prototype_transitions() {
2455 return reinterpret_cast<FixedArray*>(
2456 READ_FIELD(this, kPrototypeTransitionsOffset));
2457 }
2458
2459
2460 Code::Flags Code::flags() { 2454 Code::Flags Code::flags() {
2461 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); 2455 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset));
2462 } 2456 }
2463 2457
2464 2458
2465 void Code::set_flags(Code::Flags flags) { 2459 void Code::set_flags(Code::Flags flags) {
2466 STATIC_ASSERT(Code::NUMBER_OF_KINDS <= (kFlagsKindMask >> kFlagsKindShift)+1); 2460 STATIC_ASSERT(Code::NUMBER_OF_KINDS <= (kFlagsKindMask >> kFlagsKindShift)+1);
2467 // Make sure that all call stubs have an arguments count. 2461 // Make sure that all call stubs have an arguments count.
2468 ASSERT((ExtractKindFromFlags(flags) != CALL_IC && 2462 ASSERT((ExtractKindFromFlags(flags) != CALL_IC &&
2469 ExtractKindFromFlags(flags) != KEYED_CALL_IC) || 2463 ExtractKindFromFlags(flags) != KEYED_CALL_IC) ||
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
4171 #undef WRITE_INT_FIELD 4165 #undef WRITE_INT_FIELD
4172 #undef READ_SHORT_FIELD 4166 #undef READ_SHORT_FIELD
4173 #undef WRITE_SHORT_FIELD 4167 #undef WRITE_SHORT_FIELD
4174 #undef READ_BYTE_FIELD 4168 #undef READ_BYTE_FIELD
4175 #undef WRITE_BYTE_FIELD 4169 #undef WRITE_BYTE_FIELD
4176 4170
4177 4171
4178 } } // namespace v8::internal 4172 } } // namespace v8::internal
4179 4173
4180 #endif // V8_OBJECTS_INL_H_ 4174 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698