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

Side by Side Diff: src/jsregexp.h

Issue 231883007: Return MaybeHandle from Invoke. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/json-stringifier.h ('k') | src/jsregexp.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static bool UsesNativeRegExp() { 48 static bool UsesNativeRegExp() {
49 #ifdef V8_INTERPRETED_REGEXP 49 #ifdef V8_INTERPRETED_REGEXP
50 return false; 50 return false;
51 #else 51 #else
52 return true; 52 return true;
53 #endif 53 #endif
54 } 54 }
55 55
56 // Creates a regular expression literal in the old space. 56 // Creates a regular expression literal in the old space.
57 // This function calls the garbage collector if necessary. 57 // This function calls the garbage collector if necessary.
58 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, 58 MUST_USE_RESULT static MaybeHandle<Object> CreateRegExpLiteral(
59 Handle<String> pattern, 59 Handle<JSFunction> constructor,
60 Handle<String> flags, 60 Handle<String> pattern,
61 bool* has_pending_exception); 61 Handle<String> flags);
62 62
63 // Returns a string representation of a regular expression. 63 // Returns a string representation of a regular expression.
64 // Implements RegExp.prototype.toString, see ECMA-262 section 15.10.6.4. 64 // Implements RegExp.prototype.toString, see ECMA-262 section 15.10.6.4.
65 // This function calls the garbage collector if necessary. 65 // This function calls the garbage collector if necessary.
66 static Handle<String> ToString(Handle<Object> value); 66 static Handle<String> ToString(Handle<Object> value);
67 67
68 // Parses the RegExp pattern and prepares the JSRegExp object with 68 // Parses the RegExp pattern and prepares the JSRegExp object with
69 // generic data and choice of implementation - as well as what 69 // generic data and choice of implementation - as well as what
70 // the implementation wants to store in the data field. 70 // the implementation wants to store in the data field.
71 // Returns false if compilation fails. 71 // Returns false if compilation fails.
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 Handle<String> sample_subject, 1636 Handle<String> sample_subject,
1637 bool is_ascii, Zone* zone); 1637 bool is_ascii, Zone* zone);
1638 1638
1639 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); 1639 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case);
1640 }; 1640 };
1641 1641
1642 1642
1643 } } // namespace v8::internal 1643 } } // namespace v8::internal
1644 1644
1645 #endif // V8_JSREGEXP_H_ 1645 #endif // V8_JSREGEXP_H_
OLDNEW
« no previous file with comments | « src/json-stringifier.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698