Chromium Code Reviews| Index: src/runtime/runtime-classes.cc |
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
| index 167abcc310642710c6bbe9fe57735e38c277189b..6b0577d31d6419a816c76c7ed07d3d2c9451cc67 100644 |
| --- a/src/runtime/runtime-classes.cc |
| +++ b/src/runtime/runtime-classes.cc |
| @@ -464,5 +464,14 @@ RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) { |
| UNIMPLEMENTED(); |
| return nullptr; |
| } |
| + |
| + |
| +RUNTIME_FUNCTION(Runtime_GetNewTarget) { |
| + HandleScope scope(isolate); |
| + DCHECK(args.length() == 0); |
| + JavaScriptFrameIterator it(isolate); |
| + JavaScriptFrame* frame = it.frame(); |
| + return frame->NewTarget(); |
|
arv (Not doing code reviews)
2015/04/21 17:46:03
This is to make debugging easier... it should go a
|
| +} |
| } |
| } // namespace v8::internal |