| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 Handle<Object> self_reference, | 534 Handle<Object> self_reference, |
| 535 bool immovable = false, | 535 bool immovable = false, |
| 536 bool crankshafted = false, | 536 bool crankshafted = false, |
| 537 int prologue_offset = Code::kPrologueOffsetNotSet, | 537 int prologue_offset = Code::kPrologueOffsetNotSet, |
| 538 bool is_debug = false); | 538 bool is_debug = false); |
| 539 | 539 |
| 540 Handle<Code> CopyCode(Handle<Code> code); | 540 Handle<Code> CopyCode(Handle<Code> code); |
| 541 | 541 |
| 542 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 542 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
| 543 | 543 |
| 544 Handle<BytecodeArray> CopyBytecodeArray(Handle<BytecodeArray>); |
| 545 |
| 544 // Interface for creating error objects. | 546 // Interface for creating error objects. |
| 545 Handle<Object> NewError(Handle<JSFunction> constructor, | 547 Handle<Object> NewError(Handle<JSFunction> constructor, |
| 546 Handle<String> message); | 548 Handle<String> message); |
| 547 | 549 |
| 548 Handle<Object> NewInvalidStringLengthError() { | 550 Handle<Object> NewInvalidStringLengthError() { |
| 549 return NewRangeError(MessageTemplate::kInvalidStringLength); | 551 return NewRangeError(MessageTemplate::kInvalidStringLength); |
| 550 } | 552 } |
| 551 | 553 |
| 552 Handle<Object> NewError(Handle<JSFunction> constructor, | 554 Handle<Object> NewError(Handle<JSFunction> constructor, |
| 553 MessageTemplate::Template template_index, | 555 MessageTemplate::Template template_index, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 // Create a JSArray with no elements and no length. | 703 // Create a JSArray with no elements and no length. |
| 702 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 704 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
| 703 Strength strength = Strength::WEAK, | 705 Strength strength = Strength::WEAK, |
| 704 PretenureFlag pretenure = NOT_TENURED); | 706 PretenureFlag pretenure = NOT_TENURED); |
| 705 }; | 707 }; |
| 706 | 708 |
| 707 } // namespace internal | 709 } // namespace internal |
| 708 } // namespace v8 | 710 } // namespace v8 |
| 709 | 711 |
| 710 #endif // V8_FACTORY_H_ | 712 #endif // V8_FACTORY_H_ |
| OLD | NEW |