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

Side by Side Diff: src/objects.h

Issue 136513002: Merged r18284 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: 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/code-stubs.h ('k') | src/version.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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 }; 304 };
305 305
306 // ICs store extra state in a Code object. The default extra state is 306 // ICs store extra state in a Code object. The default extra state is
307 // kNoExtraICState. 307 // kNoExtraICState.
308 typedef int ExtraICState; 308 typedef int ExtraICState;
309 static const ExtraICState kNoExtraICState = 0; 309 static const ExtraICState kNoExtraICState = 0;
310 310
311 // Instance size sentinel for objects of variable size. 311 // Instance size sentinel for objects of variable size.
312 const int kVariableSizeSentinel = 0; 312 const int kVariableSizeSentinel = 0;
313 313
314 const int kStubMajorKeyBits = 6; 314 const int kStubMajorKeyBits = 7;
315 const int kStubMinorKeyBits = kBitsPerInt - kSmiTagSize - kStubMajorKeyBits; 315 const int kStubMinorKeyBits = kBitsPerInt - kSmiTagSize - kStubMajorKeyBits;
316 316
317 // All Maps have a field instance_type containing a InstanceType. 317 // All Maps have a field instance_type containing a InstanceType.
318 // It describes the type of the instances. 318 // It describes the type of the instances.
319 // 319 //
320 // As an example, a JavaScript object is a heap object and its map 320 // As an example, a JavaScript object is a heap object and its map
321 // instance_type is JS_OBJECT_TYPE. 321 // instance_type is JS_OBJECT_TYPE.
322 // 322 //
323 // The names of the string instance types are intended to systematically 323 // The names of the string instance types are intended to systematically
324 // mirror their encoding in the instance_type field of the map. The default 324 // mirror their encoding in the instance_type field of the map. The default
(...skipping 5155 matching lines...) Expand 10 before | Expand all | Expand 10 after
5480 5480
5481 // KindSpecificFlags2 layout (ALL) 5481 // KindSpecificFlags2 layout (ALL)
5482 static const int kIsCrankshaftedBit = 0; 5482 static const int kIsCrankshaftedBit = 0;
5483 class IsCrankshaftedField: public BitField<bool, 5483 class IsCrankshaftedField: public BitField<bool,
5484 kIsCrankshaftedBit, 1> {}; // NOLINT 5484 kIsCrankshaftedBit, 1> {}; // NOLINT
5485 5485
5486 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION) 5486 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION)
5487 static const int kStubMajorKeyFirstBit = kIsCrankshaftedBit + 1; 5487 static const int kStubMajorKeyFirstBit = kIsCrankshaftedBit + 1;
5488 static const int kSafepointTableOffsetFirstBit = 5488 static const int kSafepointTableOffsetFirstBit =
5489 kStubMajorKeyFirstBit + kStubMajorKeyBits; 5489 kStubMajorKeyFirstBit + kStubMajorKeyBits;
5490 static const int kSafepointTableOffsetBitCount = 25; 5490 static const int kSafepointTableOffsetBitCount = 24;
5491 5491
5492 STATIC_ASSERT(kStubMajorKeyFirstBit + kStubMajorKeyBits <= 32); 5492 STATIC_ASSERT(kStubMajorKeyFirstBit + kStubMajorKeyBits <= 32);
5493 STATIC_ASSERT(kSafepointTableOffsetFirstBit + 5493 STATIC_ASSERT(kSafepointTableOffsetFirstBit +
5494 kSafepointTableOffsetBitCount <= 32); 5494 kSafepointTableOffsetBitCount <= 32);
5495 STATIC_ASSERT(1 + kStubMajorKeyBits + 5495 STATIC_ASSERT(1 + kStubMajorKeyBits +
5496 kSafepointTableOffsetBitCount <= 32); 5496 kSafepointTableOffsetBitCount <= 32);
5497 5497
5498 class SafepointTableOffsetField: public BitField<int, 5498 class SafepointTableOffsetField: public BitField<int,
5499 kSafepointTableOffsetFirstBit, 5499 kSafepointTableOffsetFirstBit,
5500 kSafepointTableOffsetBitCount> {}; // NOLINT 5500 kSafepointTableOffsetBitCount> {}; // NOLINT
(...skipping 5117 matching lines...) Expand 10 before | Expand all | Expand 10 after
10618 } else { 10618 } else {
10619 value &= ~(1 << bit_position); 10619 value &= ~(1 << bit_position);
10620 } 10620 }
10621 return value; 10621 return value;
10622 } 10622 }
10623 }; 10623 };
10624 10624
10625 } } // namespace v8::internal 10625 } } // namespace v8::internal
10626 10626
10627 #endif // V8_OBJECTS_H_ 10627 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698