OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3601 void JSFunctionVerify(); | 3601 void JSFunctionVerify(); |
3602 #endif | 3602 #endif |
3603 | 3603 |
3604 // Returns the number of allocated literals. | 3604 // Returns the number of allocated literals. |
3605 inline int NumberOfLiterals(); | 3605 inline int NumberOfLiterals(); |
3606 | 3606 |
3607 // Retrieve the global context from a function's literal array. | 3607 // Retrieve the global context from a function's literal array. |
3608 static Context* GlobalContextFromLiterals(FixedArray* literals); | 3608 static Context* GlobalContextFromLiterals(FixedArray* literals); |
3609 | 3609 |
3610 // Layout descriptors. | 3610 // Layout descriptors. |
3611 static const int kPrototypeOrInitialMapOffset = JSObject::kHeaderSize; | 3611 static const int kCodeOffset = JSObject::kHeaderSize; |
| 3612 static const int kPrototypeOrInitialMapOffset = |
| 3613 kCodeOffset + kPointerSize; |
3612 static const int kSharedFunctionInfoOffset = | 3614 static const int kSharedFunctionInfoOffset = |
3613 kPrototypeOrInitialMapOffset + kPointerSize; | 3615 kPrototypeOrInitialMapOffset + kPointerSize; |
3614 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; | 3616 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
3615 static const int kLiteralsOffset = kContextOffset + kPointerSize; | 3617 static const int kLiteralsOffset = kContextOffset + kPointerSize; |
3616 static const int kSize = kLiteralsOffset + kPointerSize; | 3618 static const int kSize = kLiteralsOffset + kPointerSize; |
3617 | 3619 |
3618 // Layout of the literals array. | 3620 // Layout of the literals array. |
3619 static const int kLiteralsPrefixSize = 1; | 3621 static const int kLiteralsPrefixSize = 1; |
3620 static const int kLiteralGlobalContextIndex = 0; | 3622 static const int kLiteralGlobalContextIndex = 0; |
3621 private: | 3623 private: |
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5365 } else { | 5367 } else { |
5366 value &= ~(1 << bit_position); | 5368 value &= ~(1 << bit_position); |
5367 } | 5369 } |
5368 return value; | 5370 return value; |
5369 } | 5371 } |
5370 }; | 5372 }; |
5371 | 5373 |
5372 } } // namespace v8::internal | 5374 } } // namespace v8::internal |
5373 | 5375 |
5374 #endif // V8_OBJECTS_H_ | 5376 #endif // V8_OBJECTS_H_ |
OLD | NEW |