| 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 "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 Handle<JSObject> NewExternal(void* value); | 482 Handle<JSObject> NewExternal(void* value); |
| 483 | 483 |
| 484 // The reference to the Code object is stored in self_reference. | 484 // The reference to the Code object is stored in self_reference. |
| 485 // This allows generated code to reference its own Code object | 485 // This allows generated code to reference its own Code object |
| 486 // by containing this handle. | 486 // by containing this handle. |
| 487 Handle<Code> NewCode(const CodeDesc& desc, | 487 Handle<Code> NewCode(const CodeDesc& desc, |
| 488 Code::Flags flags, | 488 Code::Flags flags, |
| 489 Handle<Object> self_reference, | 489 Handle<Object> self_reference, |
| 490 bool immovable = false, | 490 bool immovable = false, |
| 491 bool crankshafted = false, | 491 bool crankshafted = false, |
| 492 int prologue_offset = Code::kPrologueOffsetNotSet); | 492 int prologue_offset = Code::kPrologueOffsetNotSet, |
| 493 bool is_debug = false); |
| 493 | 494 |
| 494 Handle<Code> CopyCode(Handle<Code> code); | 495 Handle<Code> CopyCode(Handle<Code> code); |
| 495 | 496 |
| 496 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 497 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
| 497 | 498 |
| 498 // Interface for creating error objects. | 499 // Interface for creating error objects. |
| 499 | 500 |
| 500 Handle<Object> NewError(const char* maker, const char* message, | 501 Handle<Object> NewError(const char* maker, const char* message, |
| 501 Handle<JSArray> args); | 502 Handle<JSArray> args); |
| 502 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); | 503 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 PretenureFlag pretenure = TENURED); | 694 PretenureFlag pretenure = TENURED); |
| 694 | 695 |
| 695 Handle<JSFunction> NewFunction(Handle<Map> map, | 696 Handle<JSFunction> NewFunction(Handle<Map> map, |
| 696 Handle<String> name, | 697 Handle<String> name, |
| 697 MaybeHandle<Code> maybe_code); | 698 MaybeHandle<Code> maybe_code); |
| 698 }; | 699 }; |
| 699 | 700 |
| 700 } } // namespace v8::internal | 701 } } // namespace v8::internal |
| 701 | 702 |
| 702 #endif // V8_FACTORY_H_ | 703 #endif // V8_FACTORY_H_ |
| OLD | NEW |