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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 Code::Flags flags, | 416 Code::Flags flags, |
417 Handle<Object> self_reference, | 417 Handle<Object> self_reference, |
418 bool immovable = false, | 418 bool immovable = false, |
419 bool crankshafted = false, | 419 bool crankshafted = false, |
420 int prologue_offset = Code::kPrologueOffsetNotSet); | 420 int prologue_offset = Code::kPrologueOffsetNotSet); |
421 | 421 |
422 Handle<Code> CopyCode(Handle<Code> code); | 422 Handle<Code> CopyCode(Handle<Code> code); |
423 | 423 |
424 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 424 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
425 | 425 |
426 Handle<Object> ToObject(Handle<Object> object); | |
427 Handle<Object> ToObject(Handle<Object> object, | |
428 Handle<Context> native_context); | |
429 | |
430 // Interface for creating error objects. | 426 // Interface for creating error objects. |
431 | 427 |
432 Handle<Object> NewError(const char* maker, const char* message, | 428 Handle<Object> NewError(const char* maker, const char* message, |
433 Handle<JSArray> args); | 429 Handle<JSArray> args); |
434 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); | 430 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); |
435 Handle<Object> NewError(const char* maker, const char* message, | 431 Handle<Object> NewError(const char* maker, const char* message, |
436 Vector< Handle<Object> > args); | 432 Vector< Handle<Object> > args); |
437 Handle<Object> NewError(const char* message, | 433 Handle<Object> NewError(const char* message, |
438 Vector< Handle<Object> > args); | 434 Vector< Handle<Object> > args); |
439 Handle<Object> NewError(Handle<String> message); | 435 Handle<Object> NewError(Handle<String> message); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 | 604 |
609 // Update the map cache in the native context with (keys, map) | 605 // Update the map cache in the native context with (keys, map) |
610 Handle<MapCache> AddToMapCache(Handle<Context> context, | 606 Handle<MapCache> AddToMapCache(Handle<Context> context, |
611 Handle<FixedArray> keys, | 607 Handle<FixedArray> keys, |
612 Handle<Map> map); | 608 Handle<Map> map); |
613 }; | 609 }; |
614 | 610 |
615 } } // namespace v8::internal | 611 } } // namespace v8::internal |
616 | 612 |
617 #endif // V8_FACTORY_H_ | 613 #endif // V8_FACTORY_H_ |
OLD | NEW |