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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 | 600 |
601 // Allocates a new JSMessageObject object. | 601 // Allocates a new JSMessageObject object. |
602 Handle<JSMessageObject> NewJSMessageObject( | 602 Handle<JSMessageObject> NewJSMessageObject( |
603 Handle<String> type, | 603 Handle<String> type, |
604 Handle<JSArray> arguments, | 604 Handle<JSArray> arguments, |
605 int start_position, | 605 int start_position, |
606 int end_position, | 606 int end_position, |
607 Handle<Object> script, | 607 Handle<Object> script, |
608 Handle<Object> stack_frames); | 608 Handle<Object> stack_frames); |
609 | 609 |
610 #ifdef ENABLE_DEBUGGER_SUPPORT | |
611 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 610 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
612 #endif | |
613 | 611 |
614 // Return a map using the map cache in the native context. | 612 // Return a map using the map cache in the native context. |
615 // The key the an ordered set of property names. | 613 // The key the an ordered set of property names. |
616 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, | 614 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, |
617 Handle<FixedArray> keys); | 615 Handle<FixedArray> keys); |
618 | 616 |
619 // Creates a new FixedArray that holds the data associated with the | 617 // Creates a new FixedArray that holds the data associated with the |
620 // atom regexp and stores it in the regexp. | 618 // atom regexp and stores it in the regexp. |
621 void SetRegExpAtomData(Handle<JSRegExp> regexp, | 619 void SetRegExpAtomData(Handle<JSRegExp> regexp, |
622 JSRegExp::Type type, | 620 JSRegExp::Type type, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 // the string representation of the number. Otherwise return undefined. | 679 // the string representation of the number. Otherwise return undefined. |
682 Handle<Object> GetNumberStringCache(Handle<Object> number); | 680 Handle<Object> GetNumberStringCache(Handle<Object> number); |
683 | 681 |
684 // Update the cache with a new number-string pair. | 682 // Update the cache with a new number-string pair. |
685 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 683 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
686 }; | 684 }; |
687 | 685 |
688 } } // namespace v8::internal | 686 } } // namespace v8::internal |
689 | 687 |
690 #endif // V8_FACTORY_H_ | 688 #endif // V8_FACTORY_H_ |
OLD | NEW |