Skip to content

Commit 6ffbae7

Browse files
hashseedCommit bot
authored andcommitted
[debugger] remove GeneratorMirror.prototype.context().
I can't express my disbelief when I saw it getting a raw context object from the runtime. Luckily this is not used anywhere. R=neis@chromium.org Review URL: https://codereview.chromium.org/1844543002 Cr-Commit-Position: refs/heads/master@{#35102}
1 parent 7ed2d00 commit 6ffbae7

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/debug/mirrors.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,14 +1434,6 @@ GeneratorMirror.prototype.func = function() {
14341434
};
14351435

14361436

1437-
GeneratorMirror.prototype.context = function() {
1438-
if (!this.context_) {
1439-
this.context_ = new ContextMirror(%GeneratorGetContext(this.value_));
1440-
}
1441-
return this.context_;
1442-
};
1443-
1444-
14451437
GeneratorMirror.prototype.receiver = function() {
14461438
if (!this.receiver_) {
14471439
this.receiver_ = MakeMirror(%GeneratorGetReceiver(this.value_));

src/runtime/runtime-generator.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,6 @@ RUNTIME_FUNCTION(Runtime_GeneratorGetFunction) {
148148
}
149149

150150

151-
// Returns context of generator activation.
152-
RUNTIME_FUNCTION(Runtime_GeneratorGetContext) {
153-
HandleScope scope(isolate);
154-
DCHECK(args.length() == 1);
155-
CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0);
156-
157-
return generator->context();
158-
}
159-
160-
161151
// Returns receiver of generator activation.
162152
RUNTIME_FUNCTION(Runtime_GeneratorGetReceiver) {
163153
HandleScope scope(isolate);

src/runtime/runtime.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ namespace internal {
237237
F(ResumeJSGeneratorObject, 3, 1) \
238238
F(GeneratorClose, 1, 1) \
239239
F(GeneratorGetFunction, 1, 1) \
240-
F(GeneratorGetContext, 1, 1) \
241240
F(GeneratorGetReceiver, 1, 1) \
242241
F(GeneratorGetInput, 1, 1) \
243242
F(GeneratorGetContinuation, 1, 1) \

0 commit comments

Comments
 (0)