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

Side by Side Diff: src/jsregexp.cc

Issue 11316: Merged bleeding edge 746:795 into regexp2000. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month 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/ic.cc ('k') | src/objects.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 106
107 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, 107 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor,
108 Handle<String> pattern, 108 Handle<String> pattern,
109 Handle<String> flags, 109 Handle<String> flags,
110 bool* has_pending_exception) { 110 bool* has_pending_exception) {
111 // Ensure that the constructor function has been loaded. 111 // Ensure that the constructor function has been loaded.
112 if (!constructor->IsLoaded()) { 112 if (!constructor->IsLoaded()) {
113 LoadLazy(constructor, has_pending_exception); 113 LoadLazy(constructor, has_pending_exception);
114 if (*has_pending_exception) return Handle<Object>(Failure::Exception()); 114 if (*has_pending_exception) return Handle<Object>();
115 } 115 }
116 // Call the construct code with 2 arguments. 116 // Call the construct code with 2 arguments.
117 Object** argv[2] = { Handle<Object>::cast(pattern).location(), 117 Object** argv[2] = { Handle<Object>::cast(pattern).location(),
118 Handle<Object>::cast(flags).location() }; 118 Handle<Object>::cast(flags).location() };
119 return Execution::New(constructor, 2, argv, has_pending_exception); 119 return Execution::New(constructor, 2, argv, has_pending_exception);
120 } 120 }
121 121
122 122
123 // Converts a source string to a 16 bit flat string or a SlicedString containing 123 // Converts a source string to a 16 bit flat string or a SlicedString containing
124 // a 16 bit flat string). 124 // a 16 bit flat string).
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 } 2242 }
2243 2243
2244 RegExpMacroAssembler::RegExpMacroAssembler() { 2244 RegExpMacroAssembler::RegExpMacroAssembler() {
2245 } 2245 }
2246 2246
2247 RegExpMacroAssembler::~RegExpMacroAssembler() { 2247 RegExpMacroAssembler::~RegExpMacroAssembler() {
2248 } 2248 }
2249 2249
2250 2250
2251 }} // namespace v8::internal 2251 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698