| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index f6acb8870fec4840d6793bdd7c649e7652573cb6..4771b0b2e4e563216edcdb23aa06ce76060b9e5d 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -12625,6 +12625,26 @@ void HOptimizedGraphBuilder::GenerateRegExpExec(CallRuntime* call) {
|
| }
|
|
|
|
|
| +void HOptimizedGraphBuilder::GenerateRegExpFlags(CallRuntime* call) {
|
| + DCHECK_EQ(1, call->arguments()->length());
|
| + CHECK_ALIVE(VisitExpressions(call->arguments()));
|
| + HValue* regexp = Pop();
|
| + HInstruction* result =
|
| + New<HLoadNamedField>(regexp, nullptr, HObjectAccess::ForJSRegExpFlags());
|
| + return ast_context()->ReturnInstruction(result, call->id());
|
| +}
|
| +
|
| +
|
| +void HOptimizedGraphBuilder::GenerateRegExpSource(CallRuntime* call) {
|
| + DCHECK_EQ(1, call->arguments()->length());
|
| + CHECK_ALIVE(VisitExpressions(call->arguments()));
|
| + HValue* regexp = Pop();
|
| + HInstruction* result =
|
| + New<HLoadNamedField>(regexp, nullptr, HObjectAccess::ForJSRegExpSource());
|
| + return ast_context()->ReturnInstruction(result, call->id());
|
| +}
|
| +
|
| +
|
| void HOptimizedGraphBuilder::GenerateDoubleLo(CallRuntime* call) {
|
| DCHECK_EQ(1, call->arguments()->length());
|
| CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
|
|
|