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

Side by Side Diff: src/objects.h

Issue 619006: Refactor the check for generating inline constructors... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/heap.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 1533
1534 // Layout description. 1534 // Layout description.
1535 static const int kPropertiesOffset = HeapObject::kHeaderSize; 1535 static const int kPropertiesOffset = HeapObject::kHeaderSize;
1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize; 1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize;
1537 static const int kHeaderSize = kElementsOffset + kPointerSize; 1537 static const int kHeaderSize = kElementsOffset + kPointerSize;
1538 1538
1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize); 1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize);
1540 1540
1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); 1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index);
1542 1542
1543 bool HasSetter();
1544
1545 private: 1543 private:
1546 Object* SetElementWithInterceptor(uint32_t index, Object* value); 1544 Object* SetElementWithInterceptor(uint32_t index, Object* value);
1547 Object* SetElementWithoutInterceptor(uint32_t index, Object* value); 1545 Object* SetElementWithoutInterceptor(uint32_t index, Object* value);
1548 1546
1549 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); 1547 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index);
1550 1548
1551 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); 1549 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode);
1552 Object* DeletePropertyWithInterceptor(String* name); 1550 Object* DeletePropertyWithInterceptor(String* name);
1553 1551
1554 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); 1552 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode);
(...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after
3229 // Clear information on assignments of the form this.x = ...; 3227 // Clear information on assignments of the form this.x = ...;
3230 void ClearThisPropertyAssignmentsInfo(); 3228 void ClearThisPropertyAssignmentsInfo();
3231 3229
3232 // Indicate that this function only consists of assignments of the form 3230 // Indicate that this function only consists of assignments of the form
3233 // this.x = y; where y is either a constant or refers to an argument. 3231 // this.x = y; where y is either a constant or refers to an argument.
3234 inline bool has_only_simple_this_property_assignments(); 3232 inline bool has_only_simple_this_property_assignments();
3235 3233
3236 inline bool try_full_codegen(); 3234 inline bool try_full_codegen();
3237 inline void set_try_full_codegen(bool flag); 3235 inline void set_try_full_codegen(bool flag);
3238 3236
3237 // Check whether a inlined constructor can be generated with the given
3238 // prototype.
3239 bool CanGenerateInlineConstructor(Object* prototype);
3240
3239 // For functions which only contains this property assignments this provides 3241 // For functions which only contains this property assignments this provides
3240 // access to the names for the properties assigned. 3242 // access to the names for the properties assigned.
3241 DECL_ACCESSORS(this_property_assignments, Object) 3243 DECL_ACCESSORS(this_property_assignments, Object)
3242 inline int this_property_assignments_count(); 3244 inline int this_property_assignments_count();
3243 inline void set_this_property_assignments_count(int value); 3245 inline void set_this_property_assignments_count(int value);
3244 String* GetThisPropertyAssignmentName(int index); 3246 String* GetThisPropertyAssignmentName(int index);
3245 bool IsThisPropertyAssignmentArgument(int index); 3247 bool IsThisPropertyAssignmentArgument(int index);
3246 int GetThisPropertyAssignmentArgument(int index); 3248 int GetThisPropertyAssignmentArgument(int index);
3247 Object* GetThisPropertyAssignmentConstant(int index); 3249 Object* GetThisPropertyAssignmentConstant(int index);
3248 3250
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after
4977 } else { 4979 } else {
4978 value &= ~(1 << bit_position); 4980 value &= ~(1 << bit_position);
4979 } 4981 }
4980 return value; 4982 return value;
4981 } 4983 }
4982 }; 4984 };
4983 4985
4984 } } // namespace v8::internal 4986 } } // namespace v8::internal
4985 4987
4986 #endif // V8_OBJECTS_H_ 4988 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698