Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: src/factory.h

Issue 2415103002: [regexp] Turn last match info into a simple FixedArray (Closed)
Patch Set: Don't check instance type before map check Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 Handle<Object> stack_frames); 719 Handle<Object> stack_frames);
720 720
721 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 721 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
722 722
723 // Return a map for given number of properties using the map cache in the 723 // Return a map for given number of properties using the map cache in the
724 // native context. 724 // native context.
725 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, 725 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
726 int number_of_properties, 726 int number_of_properties,
727 bool* is_result_from_cache); 727 bool* is_result_from_cache);
728 728
729 V8_EXPORT_PRIVATE Handle<RegExpMatchInfo> NewRegExpMatchInfo();
730
729 // Creates a new FixedArray that holds the data associated with the 731 // Creates a new FixedArray that holds the data associated with the
730 // atom regexp and stores it in the regexp. 732 // atom regexp and stores it in the regexp.
731 void SetRegExpAtomData(Handle<JSRegExp> regexp, 733 void SetRegExpAtomData(Handle<JSRegExp> regexp,
732 JSRegExp::Type type, 734 JSRegExp::Type type,
733 Handle<String> source, 735 Handle<String> source,
734 JSRegExp::Flags flags, 736 JSRegExp::Flags flags,
735 Handle<Object> match_pattern); 737 Handle<Object> match_pattern);
736 738
737 // Creates a new FixedArray that holds the data associated with the 739 // Creates a new FixedArray that holds the data associated with the
738 // irregexp regexp and stores it in the regexp. 740 // irregexp regexp and stores it in the regexp.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 FunctionMode function_mode); 790 FunctionMode function_mode);
789 791
790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 792 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
791 FunctionMode function_mode); 793 FunctionMode function_mode);
792 }; 794 };
793 795
794 } // namespace internal 796 } // namespace internal
795 } // namespace v8 797 } // namespace v8
796 798
797 #endif // V8_FACTORY_H_ 799 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698