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

Side by Side Diff: src/api.h

Issue 1413463006: Map v8::Object to v8::internal::JSReceiver (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 1 month 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 | « src/accessors.cc ('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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 #define OPEN_HANDLE_LIST(V) \ 139 #define OPEN_HANDLE_LIST(V) \
140 V(Template, TemplateInfo) \ 140 V(Template, TemplateInfo) \
141 V(FunctionTemplate, FunctionTemplateInfo) \ 141 V(FunctionTemplate, FunctionTemplateInfo) \
142 V(ObjectTemplate, ObjectTemplateInfo) \ 142 V(ObjectTemplate, ObjectTemplateInfo) \
143 V(Signature, FunctionTemplateInfo) \ 143 V(Signature, FunctionTemplateInfo) \
144 V(AccessorSignature, FunctionTemplateInfo) \ 144 V(AccessorSignature, FunctionTemplateInfo) \
145 V(TypeSwitch, TypeSwitchInfo) \ 145 V(TypeSwitch, TypeSwitchInfo) \
146 V(Data, Object) \ 146 V(Data, Object) \
147 V(RegExp, JSRegExp) \ 147 V(RegExp, JSRegExp) \
148 V(Object, JSObject) \ 148 V(Object, JSReceiver) \
149 V(Array, JSArray) \ 149 V(Array, JSArray) \
150 V(Map, JSMap) \ 150 V(Map, JSMap) \
151 V(Set, JSSet) \ 151 V(Set, JSSet) \
152 V(ArrayBuffer, JSArrayBuffer) \ 152 V(ArrayBuffer, JSArrayBuffer) \
153 V(ArrayBufferView, JSArrayBufferView) \ 153 V(ArrayBufferView, JSArrayBufferView) \
154 V(TypedArray, JSTypedArray) \ 154 V(TypedArray, JSTypedArray) \
155 V(Uint8Array, JSTypedArray) \ 155 V(Uint8Array, JSTypedArray) \
156 V(Uint8ClampedArray, JSTypedArray) \ 156 V(Uint8ClampedArray, JSTypedArray) \
157 V(Int8Array, JSTypedArray) \ 157 V(Int8Array, JSTypedArray) \
158 V(Uint16Array, JSTypedArray) \ 158 V(Uint16Array, JSTypedArray) \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 v8::internal::Handle<v8::internal::Object> obj); 194 v8::internal::Handle<v8::internal::Object> obj);
195 static inline Local<Name> ToLocal( 195 static inline Local<Name> ToLocal(
196 v8::internal::Handle<v8::internal::Name> obj); 196 v8::internal::Handle<v8::internal::Name> obj);
197 static inline Local<String> ToLocal( 197 static inline Local<String> ToLocal(
198 v8::internal::Handle<v8::internal::String> obj); 198 v8::internal::Handle<v8::internal::String> obj);
199 static inline Local<Symbol> ToLocal( 199 static inline Local<Symbol> ToLocal(
200 v8::internal::Handle<v8::internal::Symbol> obj); 200 v8::internal::Handle<v8::internal::Symbol> obj);
201 static inline Local<RegExp> ToLocal( 201 static inline Local<RegExp> ToLocal(
202 v8::internal::Handle<v8::internal::JSRegExp> obj); 202 v8::internal::Handle<v8::internal::JSRegExp> obj);
203 static inline Local<Object> ToLocal( 203 static inline Local<Object> ToLocal(
204 v8::internal::Handle<v8::internal::JSReceiver> obj);
205 static inline Local<Object> ToLocal(
204 v8::internal::Handle<v8::internal::JSObject> obj); 206 v8::internal::Handle<v8::internal::JSObject> obj);
207 static inline Local<Object> ToLocal(
208 v8::internal::Handle<v8::internal::JSProxy> obj);
205 static inline Local<Array> ToLocal( 209 static inline Local<Array> ToLocal(
206 v8::internal::Handle<v8::internal::JSArray> obj); 210 v8::internal::Handle<v8::internal::JSArray> obj);
207 static inline Local<Map> ToLocal( 211 static inline Local<Map> ToLocal(
208 v8::internal::Handle<v8::internal::JSMap> obj); 212 v8::internal::Handle<v8::internal::JSMap> obj);
209 static inline Local<Set> ToLocal( 213 static inline Local<Set> ToLocal(
210 v8::internal::Handle<v8::internal::JSSet> obj); 214 v8::internal::Handle<v8::internal::JSSet> obj);
211 static inline Local<ArrayBuffer> ToLocal( 215 static inline Local<ArrayBuffer> ToLocal(
212 v8::internal::Handle<v8::internal::JSArrayBuffer> obj); 216 v8::internal::Handle<v8::internal::JSArrayBuffer> obj);
213 static inline Local<ArrayBufferView> ToLocal( 217 static inline Local<ArrayBufferView> ToLocal(
214 v8::internal::Handle<v8::internal::JSArrayBufferView> obj); 218 v8::internal::Handle<v8::internal::JSArrayBufferView> obj);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \ 350 return Convert<v8::internal::JSTypedArray, v8::Type##Array>(obj); \
347 } 351 }
348 352
349 353
350 MAKE_TO_LOCAL(ToLocal, Context, Context) 354 MAKE_TO_LOCAL(ToLocal, Context, Context)
351 MAKE_TO_LOCAL(ToLocal, Object, Value) 355 MAKE_TO_LOCAL(ToLocal, Object, Value)
352 MAKE_TO_LOCAL(ToLocal, Name, Name) 356 MAKE_TO_LOCAL(ToLocal, Name, Name)
353 MAKE_TO_LOCAL(ToLocal, String, String) 357 MAKE_TO_LOCAL(ToLocal, String, String)
354 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol) 358 MAKE_TO_LOCAL(ToLocal, Symbol, Symbol)
355 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) 359 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp)
360 MAKE_TO_LOCAL(ToLocal, JSReceiver, Object)
356 MAKE_TO_LOCAL(ToLocal, JSObject, Object) 361 MAKE_TO_LOCAL(ToLocal, JSObject, Object)
362 MAKE_TO_LOCAL(ToLocal, JSProxy, Object)
357 MAKE_TO_LOCAL(ToLocal, JSArray, Array) 363 MAKE_TO_LOCAL(ToLocal, JSArray, Array)
358 MAKE_TO_LOCAL(ToLocal, JSMap, Map) 364 MAKE_TO_LOCAL(ToLocal, JSMap, Map)
359 MAKE_TO_LOCAL(ToLocal, JSSet, Set) 365 MAKE_TO_LOCAL(ToLocal, JSSet, Set)
360 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer) 366 MAKE_TO_LOCAL(ToLocal, JSArrayBuffer, ArrayBuffer)
361 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView) 367 MAKE_TO_LOCAL(ToLocal, JSArrayBufferView, ArrayBufferView)
362 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView) 368 MAKE_TO_LOCAL(ToLocal, JSDataView, DataView)
363 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray) 369 MAKE_TO_LOCAL(ToLocal, JSTypedArray, TypedArray)
364 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer) 370 MAKE_TO_LOCAL(ToLocalShared, JSArrayBuffer, SharedArrayBuffer)
365 371
366 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY) 372 TYPED_ARRAYS(MAKE_TO_LOCAL_TYPED_ARRAY)
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 645 }
640 646
641 private: 647 private:
642 static v8::Testing::StressType stress_type_; 648 static v8::Testing::StressType stress_type_;
643 }; 649 };
644 650
645 } // namespace internal 651 } // namespace internal
646 } // namespace v8 652 } // namespace v8
647 653
648 #endif // V8_API_H_ 654 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698