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

Side by Side Diff: src/objects.h

Issue 7077: Under construction: Preliminary change to support per... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 // SharedFunctionInfo describes the JSFunction information that can be 2487 // SharedFunctionInfo describes the JSFunction information that can be
2488 // shared by multiple instances of the function. 2488 // shared by multiple instances of the function.
2489 class SharedFunctionInfo: public HeapObject { 2489 class SharedFunctionInfo: public HeapObject {
2490 public: 2490 public:
2491 // [name]: Function name. 2491 // [name]: Function name.
2492 DECL_ACCESSORS(name, Object) 2492 DECL_ACCESSORS(name, Object)
2493 2493
2494 // [code]: Function code. 2494 // [code]: Function code.
2495 DECL_ACCESSORS(code, Code) 2495 DECL_ACCESSORS(code, Code)
2496 2496
2497 // [constructor]: Code stub for constructing instances of this function.
2498 DECL_ACCESSORS(constructor, Code)
iposva 2008/10/10 13:56:18 The term constructor is overloaded here. I would p
2499
2497 // Returns if this function has been compiled to native code yet. 2500 // Returns if this function has been compiled to native code yet.
2498 inline bool is_compiled(); 2501 inline bool is_compiled();
2499 2502
2500 // [length]: The function length - usually the number of declared parameters. 2503 // [length]: The function length - usually the number of declared parameters.
2501 // Use up to 2^30 parameters. 2504 // Use up to 2^30 parameters.
2502 inline int length(); 2505 inline int length();
2503 inline void set_length(int value); 2506 inline void set_length(int value);
2504 2507
2505 // [formal parameter count]: The declared number of parameters. 2508 // [formal parameter count]: The declared number of parameters.
2506 inline int formal_parameter_count(); 2509 inline int formal_parameter_count();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 2581
2579 // Casting. 2582 // Casting.
2580 static inline SharedFunctionInfo* cast(Object* obj); 2583 static inline SharedFunctionInfo* cast(Object* obj);
2581 2584
2582 // Constants. 2585 // Constants.
2583 static const int kDontAdaptArgumentsSentinel = -1; 2586 static const int kDontAdaptArgumentsSentinel = -1;
2584 2587
2585 // Layout description. 2588 // Layout description.
2586 static const int kNameOffset = HeapObject::kHeaderSize; 2589 static const int kNameOffset = HeapObject::kHeaderSize;
2587 static const int kCodeOffset = kNameOffset + kPointerSize; 2590 static const int kCodeOffset = kNameOffset + kPointerSize;
2588 static const int kLengthOffset = kCodeOffset + kPointerSize; 2591 static const int kConstructorOffset = kCodeOffset + kPointerSize;
2592 static const int kLengthOffset = kConstructorOffset + kPointerSize;
2589 static const int kFormalParameterCountOffset = kLengthOffset + kIntSize; 2593 static const int kFormalParameterCountOffset = kLengthOffset + kIntSize;
2590 static const int kExpectedNofPropertiesOffset = 2594 static const int kExpectedNofPropertiesOffset =
2591 kFormalParameterCountOffset + kIntSize; 2595 kFormalParameterCountOffset + kIntSize;
2592 static const int kInstanceClassNameOffset = 2596 static const int kInstanceClassNameOffset =
2593 kExpectedNofPropertiesOffset + kIntSize; 2597 kExpectedNofPropertiesOffset + kIntSize;
2594 static const int kExternalReferenceDataOffset = 2598 static const int kExternalReferenceDataOffset =
2595 kInstanceClassNameOffset + kPointerSize; 2599 kInstanceClassNameOffset + kPointerSize;
2596 static const int kLazyLoadDataOffset = 2600 static const int kLazyLoadDataOffset =
2597 kExternalReferenceDataOffset + kPointerSize; 2601 kExternalReferenceDataOffset + kPointerSize;
2598 static const int kScriptOffset = kLazyLoadDataOffset + kPointerSize; 2602 static const int kScriptOffset = kLazyLoadDataOffset + kPointerSize;
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
3997 } else { 4001 } else {
3998 value &= ~(1 << bit_position); 4002 value &= ~(1 << bit_position);
3999 } 4003 }
4000 return value; 4004 return value;
4001 } 4005 }
4002 }; 4006 };
4003 4007
4004 } } // namespace v8::internal 4008 } } // namespace v8::internal
4005 4009
4006 #endif // V8_OBJECTS_H_ 4010 #endif // V8_OBJECTS_H_
OLDNEW
« src/codegen-ia32.cc ('K') | « src/macro-assembler-ia32.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698