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 "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/feedback-vector.h" | 9 #include "src/feedback-vector.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 int aliased_context_slot); | 318 int aliased_context_slot); |
319 | 319 |
320 Handle<AccessorInfo> NewAccessorInfo(); | 320 Handle<AccessorInfo> NewAccessorInfo(); |
321 | 321 |
322 Handle<Script> NewScript(Handle<String> source); | 322 Handle<Script> NewScript(Handle<String> source); |
323 | 323 |
324 Handle<BreakPointInfo> NewBreakPointInfo(int source_position); | 324 Handle<BreakPointInfo> NewBreakPointInfo(int source_position); |
325 Handle<StackFrameInfo> NewStackFrameInfo(); | 325 Handle<StackFrameInfo> NewStackFrameInfo(); |
326 Handle<StackTraceInfo> NewStackTraceInfo( | 326 Handle<StackTraceInfo> NewStackTraceInfo( |
327 Handle<FixedArray> frames, StackTrace::StackTraceOptions options); | 327 Handle<FixedArray> frames, StackTrace::StackTraceOptions options); |
| 328 Handle<SourcePositionTableWithFrameCache> |
| 329 NewSourcePositionTableWithFrameCache( |
| 330 Handle<ByteArray> source_position_table, |
| 331 Handle<UnseededNumberDictionary> stack_frame_cache); |
328 | 332 |
329 // Foreign objects are pretenured when allocated by the bootstrapper. | 333 // Foreign objects are pretenured when allocated by the bootstrapper. |
330 Handle<Foreign> NewForeign(Address addr, | 334 Handle<Foreign> NewForeign(Address addr, |
331 PretenureFlag pretenure = NOT_TENURED); | 335 PretenureFlag pretenure = NOT_TENURED); |
332 | 336 |
333 // Allocate a new foreign object. The foreign is pretenured (allocated | 337 // Allocate a new foreign object. The foreign is pretenured (allocated |
334 // directly in the old generation). | 338 // directly in the old generation). |
335 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 339 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
336 | 340 |
337 Handle<ByteArray> NewByteArray(int length, | 341 Handle<ByteArray> NewByteArray(int length, |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 837 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
834 FunctionMode function_mode); | 838 FunctionMode function_mode); |
835 | 839 |
836 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 840 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
837 }; | 841 }; |
838 | 842 |
839 } // namespace internal | 843 } // namespace internal |
840 } // namespace v8 | 844 } // namespace v8 |
841 | 845 |
842 #endif // V8_FACTORY_H_ | 846 #endif // V8_FACTORY_H_ |
OLD | NEW |