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

Unified Diff: src/bootstrapper.cc

Issue 2409513003: [regexp] Port remaining JS functions in regexp.js (Closed)
Patch Set: Rebaseline bytecode expectations 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 6b2f5abcc4bbfb468fdffa1cf439ace4622c5d8c..3cfafbd281d87e605875143e45bf0601317dc2d8 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1865,6 +1865,17 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
initial_map->set_unused_property_fields(0);
initial_map->set_instance_size(initial_map->instance_size() +
num_fields * kPointerSize);
+
+ { // Internal: RegExpInternalMatch
+ Handle<JSFunction> function =
+ factory->NewFunction(isolate->factory()->empty_string(),
+ isolate->builtins()->RegExpInternalMatch(),
+ JS_OBJECT_TYPE, JSObject::kHeaderSize);
+ function->shared()->set_internal_formal_parameter_count(2);
+ function->shared()->set_length(2);
+ function->shared()->set_native(true);
+ isolate->native_context()->set(Context::REGEXP_INTERNAL_MATCH, *function);
+ }
}
{ // -- E r r o r
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698