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

Side by Side Diff: src/accessors.h

Issue 152863002: Use Type* in crankshaft rather than HeapType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 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 | « no previous file | src/accessors.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Handle<Object> value); 81 Handle<Object> value);
82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object); 82 static Handle<Object> FunctionGetPrototype(Handle<JSFunction> object);
83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object); 83 static Handle<Object> FunctionGetArguments(Handle<JSFunction> object);
84 84
85 // Accessor infos. 85 // Accessor infos.
86 static Handle<AccessorInfo> MakeModuleExport( 86 static Handle<AccessorInfo> MakeModuleExport(
87 Handle<String> name, int index, PropertyAttributes attributes); 87 Handle<String> name, int index, PropertyAttributes attributes);
88 88
89 // Returns true for properties that are accessors to object fields. 89 // Returns true for properties that are accessors to object fields.
90 // If true, *object_offset contains offset of object field. 90 // If true, *object_offset contains offset of object field.
91 static bool IsJSObjectFieldAccessor( 91 template <class T>
92 Handle<HeapType> map, Handle<String> name, int* object_offset); 92 static bool IsJSObjectFieldAccessor(typename T::TypeHandle type,
93 Handle<String> name,
94 int* object_offset);
93 95
94 96
95 private: 97 private:
96 // Accessor functions only used through the descriptor. 98 // Accessor functions only used through the descriptor.
97 static MaybeObject* FunctionSetPrototype(Isolate* isolate, 99 static MaybeObject* FunctionSetPrototype(Isolate* isolate,
98 JSObject* object, 100 JSObject* object,
99 Object*, 101 Object*,
100 void*); 102 void*);
101 static MaybeObject* FunctionGetPrototype(Isolate* isolate, 103 static MaybeObject* FunctionGetPrototype(Isolate* isolate,
102 Object* object, 104 Object* object,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); 158 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*);
157 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, 159 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate,
158 JSObject*, 160 JSObject*,
159 Object* value, 161 Object* value,
160 void*); 162 void*);
161 }; 163 };
162 164
163 } } // namespace v8::internal 165 } } // namespace v8::internal
164 166
165 #endif // V8_ACCESSORS_H_ 167 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698