Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index d05fe0f2587a3f8c65cfc102427e0999504a8489..3e06643f9a2cdf1188970e6c148d5b433ea6ff67 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -2719,6 +2719,15 @@ compiler::Node* DecStub::Generate(CodeStubAssembler* assembler, |
return result_var.value(); |
} |
+// ES6 section 21.1.3.19 String.prototype.substring ( start, end ) |
+compiler::Node* SubStringStub::Generate(CodeStubAssembler* assembler, |
+ compiler::Node* string, |
+ compiler::Node* from, |
+ compiler::Node* to, |
+ compiler::Node* context) { |
+ return assembler->SubString(context, string, from, to); |
+} |
+ |
// ES6 section 7.1.13 ToObject (argument) |
void ToObjectStub::GenerateAssembly(CodeStubAssembler* assembler) const { |
typedef compiler::Node Node; |