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

Side by Side Diff: src/accessors.h

Issue 23824002: thread isolate in accessors.cc (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 private: 89 private:
90 // Accessor functions only used through the descriptor. 90 // Accessor functions only used through the descriptor.
91 static MaybeObject* FunctionSetPrototype(JSObject* object, Object*, void*); 91 static MaybeObject* FunctionSetPrototype(Isolate* isolate,
92 static MaybeObject* FunctionGetPrototype(Object* object, void*); 92 JSObject* object,
93 static MaybeObject* FunctionGetLength(Object* object, void*); 93 Object*,
94 static MaybeObject* FunctionGetName(Object* object, void*); 94 void*);
95 static MaybeObject* FunctionGetArguments(Object* object, void*); 95 static MaybeObject* FunctionGetPrototype(Isolate* isolate,
96 static MaybeObject* FunctionGetCaller(Object* object, void*); 96 Object* object,
97 static MaybeObject* ArraySetLength(JSObject* object, Object*, void*); 97 void*);
98 static MaybeObject* ArrayGetLength(Object* object, void*); 98 static MaybeObject* FunctionGetLength(Isolate* isolate,
99 static MaybeObject* StringGetLength(Object* object, void*); 99 Object* object,
100 static MaybeObject* ScriptGetName(Object* object, void*); 100 void*);
101 static MaybeObject* ScriptGetId(Object* object, void*); 101 static MaybeObject* FunctionGetName(Isolate* isolate, Object* object, void*);
102 static MaybeObject* ScriptGetSource(Object* object, void*); 102 static MaybeObject* FunctionGetArguments(Isolate* isolate,
103 static MaybeObject* ScriptGetLineOffset(Object* object, void*); 103 Object* object,
104 static MaybeObject* ScriptGetColumnOffset(Object* object, void*); 104 void*);
105 static MaybeObject* ScriptGetData(Object* object, void*); 105 static MaybeObject* FunctionGetCaller(Isolate* isolate,
106 static MaybeObject* ScriptGetType(Object* object, void*); 106 Object* object,
107 static MaybeObject* ScriptGetCompilationType(Object* object, void*); 107 void*);
108 static MaybeObject* ScriptGetLineEnds(Object* object, void*); 108 static MaybeObject* ArraySetLength(Isolate* isolate,
109 static MaybeObject* ScriptGetContextData(Object* object, void*); 109 JSObject* object,
110 static MaybeObject* ScriptGetEvalFromScript(Object* object, void*); 110 Object*,
111 static MaybeObject* ScriptGetEvalFromScriptPosition(Object* object, void*); 111 void*);
112 static MaybeObject* ScriptGetEvalFromFunctionName(Object* object, void*); 112 static MaybeObject* ArrayGetLength(Isolate* isolate, Object* object, void*);
113 static MaybeObject* StringGetLength(Isolate* isolate, Object* object, void*);
114 static MaybeObject* ScriptGetName(Isolate* isolate, Object* object, void*);
115 static MaybeObject* ScriptGetId(Isolate* isolate, Object* object, void*);
116 static MaybeObject* ScriptGetSource(Isolate* isolate, Object* object, void*);
117 static MaybeObject* ScriptGetLineOffset(Isolate* isolate,
118 Object* object,
119 void*);
120 static MaybeObject* ScriptGetColumnOffset(Isolate* isolate,
121 Object* object,
122 void*);
123 static MaybeObject* ScriptGetData(Isolate* isolate, Object* object, void*);
124 static MaybeObject* ScriptGetType(Isolate* isolate, Object* object, void*);
125 static MaybeObject* ScriptGetCompilationType(Isolate* isolate,
126 Object* object,
127 void*);
128 static MaybeObject* ScriptGetLineEnds(Isolate* isolate,
129 Object* object,
130 void*);
131 static MaybeObject* ScriptGetContextData(Isolate* isolate,
132 Object* object,
133 void*);
134 static MaybeObject* ScriptGetEvalFromScript(Isolate* isolate,
135 Object* object,
136 void*);
137 static MaybeObject* ScriptGetEvalFromScriptPosition(Isolate* isolate,
138 Object* object,
139 void*);
140 static MaybeObject* ScriptGetEvalFromFunctionName(Isolate* isolate,
141 Object* object,
142 void*);
113 143
114 // Helper functions. 144 // Helper functions.
115 static Object* FlattenNumber(Object* value); 145 static Object* FlattenNumber(Isolate* isolate, Object* value);
116 static MaybeObject* IllegalSetter(JSObject*, Object*, void*); 146 static MaybeObject* IllegalSetter(Isolate* isolate,
117 static Object* IllegalGetAccessor(Object* object, void*); 147 JSObject*,
118 static MaybeObject* ReadOnlySetAccessor(JSObject*, Object* value, void*); 148 Object*,
149 void*);
150 static Object* IllegalGetAccessor(Isolate* isolate, Object* object, void*);
151 static MaybeObject* ReadOnlySetAccessor(Isolate* isolate,
152 JSObject*,
153 Object* value,
154 void*);
119 }; 155 };
120 156
121 } } // namespace v8::internal 157 } } // namespace v8::internal
122 158
123 #endif // V8_ACCESSORS_H_ 159 #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