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

Side by Side Diff: src/accessors.h

Issue 24360019: Speed up ArrayBuffer/typed array/DataView properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: After self-review Created 7 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
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/ic.cc » ('J')
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Accessor functions called directly from the runtime system. 79 // Accessor functions called directly from the runtime system.
80 static Handle<Object> FunctionSetPrototype(Handle<JSFunction> object, 80 static Handle<Object> FunctionSetPrototype(Handle<JSFunction> object,
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.
90 // If true, *object_offset contains offset of object field.
91 static bool IsJSObjectFieldAccessor(
92 Handle<Map> map, Handle<String> name,
93 int* object_offset);
94
95
89 private: 96 private:
90 // Accessor functions only used through the descriptor. 97 // Accessor functions only used through the descriptor.
91 static MaybeObject* FunctionSetPrototype(Isolate* isolate, 98 static MaybeObject* FunctionSetPrototype(Isolate* isolate,
92 JSObject* object, 99 JSObject* object,
93 Object*, 100 Object*,
94 void*); 101 void*);
95 static MaybeObject* FunctionGetPrototype(Isolate* isolate, 102 static MaybeObject* FunctionGetPrototype(Isolate* isolate,
96 Object* object, 103 Object* object,
97 void*); 104 void*);
98 static MaybeObject* FunctionGetLength(Isolate* isolate, 105 static MaybeObject* FunctionGetLength(Isolate* isolate,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*); 157 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*);
151 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate, 158 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate,
152 JSObject*, 159 JSObject*,
153 Object* value, 160 Object* value,
154 void*); 161 void*);
155 }; 162 };
156 163
157 } } // namespace v8::internal 164 } } // namespace v8::internal
158 165
159 #endif // V8_ACCESSORS_H_ 166 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698