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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 Handle<Object> self_reference, | 542 Handle<Object> self_reference, |
543 bool immovable = false, | 543 bool immovable = false, |
544 bool crankshafted = false, | 544 bool crankshafted = false, |
545 int prologue_offset = Code::kPrologueOffsetNotSet, | 545 int prologue_offset = Code::kPrologueOffsetNotSet, |
546 bool is_debug = false); | 546 bool is_debug = false); |
547 | 547 |
548 Handle<Code> CopyCode(Handle<Code> code); | 548 Handle<Code> CopyCode(Handle<Code> code); |
549 | 549 |
550 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 550 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
551 | 551 |
| 552 Handle<BytecodeArray> CopyBytecodeArray(Handle<BytecodeArray>); |
| 553 |
552 // Interface for creating error objects. | 554 // Interface for creating error objects. |
553 Handle<Object> NewError(Handle<JSFunction> constructor, | 555 Handle<Object> NewError(Handle<JSFunction> constructor, |
554 Handle<String> message); | 556 Handle<String> message); |
555 | 557 |
556 Handle<Object> NewInvalidStringLengthError() { | 558 Handle<Object> NewInvalidStringLengthError() { |
557 return NewRangeError(MessageTemplate::kInvalidStringLength); | 559 return NewRangeError(MessageTemplate::kInvalidStringLength); |
558 } | 560 } |
559 | 561 |
560 Handle<Object> NewError(Handle<JSFunction> constructor, | 562 Handle<Object> NewError(Handle<JSFunction> constructor, |
561 MessageTemplate::Template template_index, | 563 MessageTemplate::Template template_index, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 // Create a JSArray with no elements and no length. | 711 // Create a JSArray with no elements and no length. |
710 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 712 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
711 Strength strength = Strength::WEAK, | 713 Strength strength = Strength::WEAK, |
712 PretenureFlag pretenure = NOT_TENURED); | 714 PretenureFlag pretenure = NOT_TENURED); |
713 }; | 715 }; |
714 | 716 |
715 } // namespace internal | 717 } // namespace internal |
716 } // namespace v8 | 718 } // namespace v8 |
717 | 719 |
718 #endif // V8_FACTORY_H_ | 720 #endif // V8_FACTORY_H_ |
OLD | NEW |