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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 Handle<Code> NewCode(const CodeDesc& desc, | 545 Handle<Code> NewCode(const CodeDesc& desc, |
546 Code::Flags flags, | 546 Code::Flags flags, |
547 Handle<Object> self_reference, | 547 Handle<Object> self_reference, |
548 bool immovable = false, | 548 bool immovable = false, |
549 bool crankshafted = false, | 549 bool crankshafted = false, |
550 int prologue_offset = Code::kPrologueOffsetNotSet, | 550 int prologue_offset = Code::kPrologueOffsetNotSet, |
551 bool is_debug = false); | 551 bool is_debug = false); |
552 | 552 |
553 Handle<Code> CopyCode(Handle<Code> code); | 553 Handle<Code> CopyCode(Handle<Code> code); |
554 | 554 |
555 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | |
556 | |
557 Handle<BytecodeArray> CopyBytecodeArray(Handle<BytecodeArray>); | 555 Handle<BytecodeArray> CopyBytecodeArray(Handle<BytecodeArray>); |
558 | 556 |
559 // Interface for creating error objects. | 557 // Interface for creating error objects. |
560 Handle<Object> NewError(Handle<JSFunction> constructor, | 558 Handle<Object> NewError(Handle<JSFunction> constructor, |
561 Handle<String> message); | 559 Handle<String> message); |
562 | 560 |
563 Handle<Object> NewInvalidStringLengthError() { | 561 Handle<Object> NewInvalidStringLengthError() { |
564 return NewRangeError(MessageTemplate::kInvalidStringLength); | 562 return NewRangeError(MessageTemplate::kInvalidStringLength); |
565 } | 563 } |
566 | 564 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 | 713 |
716 // Create a JSArray with no elements and no length. | 714 // Create a JSArray with no elements and no length. |
717 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 715 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
718 PretenureFlag pretenure = NOT_TENURED); | 716 PretenureFlag pretenure = NOT_TENURED); |
719 }; | 717 }; |
720 | 718 |
721 } // namespace internal | 719 } // namespace internal |
722 } // namespace v8 | 720 } // namespace v8 |
723 | 721 |
724 #endif // V8_FACTORY_H_ | 722 #endif // V8_FACTORY_H_ |
OLD | NEW |