Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 5d19c5cf7dcbc9049998720c6e311464291ee1e9..1b5735df8e76f147be8eaa4076fff6fd3a8d785d 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1425,4 +1425,20 @@ Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { |
} |
+template<> |
+HValue* CodeStubGraphBuilder<RegExpConstructResultStub>::BuildCodeStub() { |
+ // Determine the parameters. |
+ HValue* length = GetParameter(RegExpConstructResultStub::kLength); |
+ HValue* index = GetParameter(RegExpConstructResultStub::kIndex); |
+ HValue* input = GetParameter(RegExpConstructResultStub::kInput); |
+ |
+ return BuildRegExpConstructResult(length, index, input); |
+} |
+ |
+ |
+Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { |
+ return DoGenerateCode(isolate, this); |
+} |
+ |
+ |
} } // namespace v8::internal |