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

Side by Side Diff: src/objects.h

Issue 3120006: Put direct code pointers into JSFunction objects. This is a first step... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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/ia32/macro-assembler-ia32.cc ('k') | src/objects-inl.h » ('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 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
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
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_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698