OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 249 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
250 Handle<Context> previous, | 250 Handle<Context> previous, |
251 Handle<String> name, | 251 Handle<String> name, |
252 Handle<Object> thrown_object); | 252 Handle<Object> thrown_object); |
253 | 253 |
254 // Create a 'with' context. | 254 // Create a 'with' context. |
255 Handle<Context> NewWithContext(Handle<JSFunction> function, | 255 Handle<Context> NewWithContext(Handle<JSFunction> function, |
256 Handle<Context> previous, | 256 Handle<Context> previous, |
257 Handle<JSReceiver> extension); | 257 Handle<JSReceiver> extension); |
258 | 258 |
| 259 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, |
| 260 Handle<JSReceiver> extension, |
| 261 Handle<Context> wrapped, |
| 262 Handle<NameDictionary> whitelist); |
| 263 |
259 // Create a block context. | 264 // Create a block context. |
260 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 265 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
261 Handle<Context> previous, | 266 Handle<Context> previous, |
262 Handle<ScopeInfo> scope_info); | 267 Handle<ScopeInfo> scope_info); |
263 | 268 |
264 // Allocate a new struct. The struct is pretenured (allocated directly in | 269 // Allocate a new struct. The struct is pretenured (allocated directly in |
265 // the old generation). | 270 // the old generation). |
266 Handle<Struct> NewStruct(InstanceType type); | 271 Handle<Struct> NewStruct(InstanceType type); |
267 | 272 |
268 Handle<CodeCache> NewCodeCache(); | 273 Handle<CodeCache> NewCodeCache(); |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 | 709 |
705 // Create a JSArray with no elements and no length. | 710 // Create a JSArray with no elements and no length. |
706 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 711 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
707 PretenureFlag pretenure = NOT_TENURED); | 712 PretenureFlag pretenure = NOT_TENURED); |
708 }; | 713 }; |
709 | 714 |
710 } // namespace internal | 715 } // namespace internal |
711 } // namespace v8 | 716 } // namespace v8 |
712 | 717 |
713 #endif // V8_FACTORY_H_ | 718 #endif // V8_FACTORY_H_ |
OLD | NEW |