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

Side by Side Diff: src/api.h

Issue 1542943002: [proxies] Expose proxies in the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-12-17_JSProxy_d8_printing_1530293004
Patch Set: adressing comments Created 5 years 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
« no previous file with comments | « include/v8.h ('k') | src/api.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_API_H_ 5 #ifndef V8_API_H_
6 #define V8_API_H_ 6 #define V8_API_H_
7 7
8 #include "include/v8-testing.h" 8 #include "include/v8-testing.h"
9 #include "src/contexts.h" 9 #include "src/contexts.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 V(String, String) \ 166 V(String, String) \
167 V(Symbol, Symbol) \ 167 V(Symbol, Symbol) \
168 V(Script, JSFunction) \ 168 V(Script, JSFunction) \
169 V(UnboundScript, SharedFunctionInfo) \ 169 V(UnboundScript, SharedFunctionInfo) \
170 V(Function, JSReceiver) \ 170 V(Function, JSReceiver) \
171 V(Message, JSMessageObject) \ 171 V(Message, JSMessageObject) \
172 V(Context, Context) \ 172 V(Context, Context) \
173 V(External, Object) \ 173 V(External, Object) \
174 V(StackTrace, JSArray) \ 174 V(StackTrace, JSArray) \
175 V(StackFrame, JSObject) \ 175 V(StackFrame, JSObject) \
176 V(Proxy, JSProxy) \
176 V(NativeWeakMap, JSWeakMap) 177 V(NativeWeakMap, JSWeakMap)
177 178
178 class Utils { 179 class Utils {
179 public: 180 public:
180 static inline bool ApiCheck(bool condition, 181 static inline bool ApiCheck(bool condition,
181 const char* location, 182 const char* location,
182 const char* message) { 183 const char* message) {
183 if (!condition) Utils::ReportApiFailure(location, message); 184 if (!condition) Utils::ReportApiFailure(location, message);
184 return condition; 185 return condition;
185 } 186 }
(...skipping 10 matching lines...) Expand all
196 static inline Local<String> ToLocal( 197 static inline Local<String> ToLocal(
197 v8::internal::Handle<v8::internal::String> obj); 198 v8::internal::Handle<v8::internal::String> obj);
198 static inline Local<Symbol> ToLocal( 199 static inline Local<Symbol> ToLocal(
199 v8::internal::Handle<v8::internal::Symbol> obj); 200 v8::internal::Handle<v8::internal::Symbol> obj);
200 static inline Local<RegExp> ToLocal( 201 static inline Local<RegExp> ToLocal(
201 v8::internal::Handle<v8::internal::JSRegExp> obj); 202 v8::internal::Handle<v8::internal::JSRegExp> obj);
202 static inline Local<Object> ToLocal( 203 static inline Local<Object> ToLocal(
203 v8::internal::Handle<v8::internal::JSReceiver> obj); 204 v8::internal::Handle<v8::internal::JSReceiver> obj);
204 static inline Local<Object> ToLocal( 205 static inline Local<Object> ToLocal(
205 v8::internal::Handle<v8::internal::JSObject> obj); 206 v8::internal::Handle<v8::internal::JSObject> obj);
206 static inline Local<Object> ToLocal(
207 v8::internal::Handle<v8::internal::JSProxy> obj);
208 static inline Local<Array> ToLocal( 207 static inline Local<Array> ToLocal(
209 v8::internal::Handle<v8::internal::JSArray> obj); 208 v8::internal::Handle<v8::internal::JSArray> obj);
210 static inline Local<Map> ToLocal( 209 static inline Local<Map> ToLocal(
211 v8::internal::Handle<v8::internal::JSMap> obj); 210 v8::internal::Handle<v8::internal::JSMap> obj);
212 static inline Local<Set> ToLocal( 211 static inline Local<Set> ToLocal(
213 v8::internal::Handle<v8::internal::JSSet> obj); 212 v8::internal::Handle<v8::internal::JSSet> obj);
213 static inline Local<Proxy> ToLocal(
214 v8::internal::Handle<v8::internal::JSProxy> obj);
214 static inline Local<ArrayBuffer> ToLocal( 215 static inline Local<ArrayBuffer> ToLocal(
215 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); 216 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
216 static inline Local<ArrayBufferView> ToLocal( 217 static inline Local<ArrayBufferView> ToLocal(
217 v8::internal::Handle<v8::internal::JSArrayBufferView> obj); 218 v8::internal::Handle<v8::internal::JSArrayBufferView> obj);
218 static inline Local<DataView> ToLocal( 219 static inline Local<DataView> ToLocal(
219 v8::internal::Handle<v8::internal::JSDataView> obj); 220 v8::internal::Handle<v8::internal::JSDataView> obj);
220
221 static inline Local<TypedArray> ToLocal( 221 static inline Local<TypedArray> ToLocal(
222 v8::internal::Handle<v8::internal::JSTypedArray> obj); 222 v8::internal::Handle<v8::internal::JSTypedArray> obj);
223 static inline Local<Uint8Array> ToLocalUint8Array( 223 static inline Local<Uint8Array> ToLocalUint8Array(
224 v8::internal::Handle<v8::internal::JSTypedArray> obj); 224 v8::internal::Handle<v8::internal::JSTypedArray> obj);
225 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray( 225 static inline Local<Uint8ClampedArray> ToLocalUint8ClampedArray(
226 v8::internal::Handle<v8::internal::JSTypedArray> obj); 226 v8::internal::Handle<v8::internal::JSTypedArray> obj);
227 static inline Local<Int8Array> ToLocalInt8Array( 227 static inline Local<Int8Array> ToLocalInt8Array(
228 v8::internal::Handle<v8::internal::JSTypedArray> obj); 228 v8::internal::Handle<v8::internal::JSTypedArray> obj);
229 static inline Local<Uint16Array> ToLocalUint16Array( 229 static inline Local<Uint16Array> ToLocalUint16Array(
230 v8::internal::Handle<v8::internal::JSTypedArray> obj); 230 v8::internal::Handle<v8::internal::JSTypedArray> obj);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 350
351 MAKE_TO_LOCAL(ToLocal, Context, Context) 351 MAKE_TO_LOCAL(ToLocal, Context, Context)
352 MAKE_TO_LOCAL(ToLocal, Object, Value) 352 MAKE_TO_LOCAL(ToLocal, Object, Value)
353 MAKE_TO_LOCAL(ToLocal, Name, Name) 353 MAKE_TO_LOCAL(ToLocal, Name, Name)
354 MAKE_TO_LOCAL(ToLocal, String, String) 354 MAKE_TO_LOCAL(ToLocal, String, String)
355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 355 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
357 MAKE_TO_LOCAL(ToLocal, JSReceiver, Object) 357 MAKE_TO_LOCAL(ToLocal, JSReceiver, Object)
358 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 358 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
359 MAKE_TO_LOCAL(ToLocal, JSProxy, Object)
360 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 359 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
361 MAKE_TO_LOCAL(ToLocal, JSMap, Map) 360 MAKE_TO_LOCAL(ToLocal, JSMap, Map)
362 MAKE_TO_LOCAL(ToLocal, JSSet, Set) 361 MAKE_TO_LOCAL(ToLocal, JSSet, Set)
362 MAKE_TO_LOCAL(ToLocal, JSProxy, Proxy)
363 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) 363 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer)
364 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) 364 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView)
365 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) 365 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView)
366 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 366 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
367 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) 367 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer)
368 368
369 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) 369 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY)
370 370
371 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate) 371 MAKE_TO_LOCAL(ToLocal, FunctionTemplateInfo, FunctionTemplate)
372 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate) 372 MAKE_TO_LOCAL(ToLocal, ObjectTemplateInfo, ObjectTemplate)
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 } 641 }
642 642
643 private: 643 private:
644 static v8::Testing::StressType stress_type_; 644 static v8::Testing::StressType stress_type_;
645 }; 645 };
646 646
647 } // namespace internal 647 } // namespace internal
648 } // namespace v8 648 } // namespace v8
649 649
650 #endif // V8_API_H_ 650 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698