Commit c9168fc5 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Remove unused member variable TranslatedFrame::isolate_

Recent Clang versions (r317076+) warn about this.

Bug: chromium:780523
Change-Id: Iccc8d675ce4700f67dedfaa60bc6662b03b55ceb
Reviewed-on: https://chromium-review.googlesource.com/749117Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49066}
parent f571da95
...@@ -2814,8 +2814,7 @@ void TranslatedValue::Handlify() { ...@@ -2814,8 +2814,7 @@ void TranslatedValue::Handlify() {
TranslatedFrame TranslatedFrame::InterpretedFrame( TranslatedFrame TranslatedFrame::InterpretedFrame(
BailoutId bytecode_offset, SharedFunctionInfo* shared_info, int height) { BailoutId bytecode_offset, SharedFunctionInfo* shared_info, int height) {
TranslatedFrame frame(kInterpretedFunction, shared_info->GetIsolate(), TranslatedFrame frame(kInterpretedFunction, shared_info, height);
shared_info, height);
frame.node_id_ = bytecode_offset; frame.node_id_ = bytecode_offset;
return frame; return frame;
} }
...@@ -2824,36 +2823,32 @@ TranslatedFrame TranslatedFrame::InterpretedFrame( ...@@ -2824,36 +2823,32 @@ TranslatedFrame TranslatedFrame::InterpretedFrame(
TranslatedFrame TranslatedFrame::AccessorFrame( TranslatedFrame TranslatedFrame::AccessorFrame(
Kind kind, SharedFunctionInfo* shared_info) { Kind kind, SharedFunctionInfo* shared_info) {
DCHECK(kind == kSetter || kind == kGetter); DCHECK(kind == kSetter || kind == kGetter);
return TranslatedFrame(kind, shared_info->GetIsolate(), shared_info); return TranslatedFrame(kind, shared_info);
} }
TranslatedFrame TranslatedFrame::ArgumentsAdaptorFrame( TranslatedFrame TranslatedFrame::ArgumentsAdaptorFrame(
SharedFunctionInfo* shared_info, int height) { SharedFunctionInfo* shared_info, int height) {
return TranslatedFrame(kArgumentsAdaptor, shared_info->GetIsolate(), return TranslatedFrame(kArgumentsAdaptor, shared_info, height);
shared_info, height);
} }
TranslatedFrame TranslatedFrame::ConstructStubFrame( TranslatedFrame TranslatedFrame::ConstructStubFrame(
BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) { BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) {
TranslatedFrame frame(kConstructStub, shared_info->GetIsolate(), shared_info, TranslatedFrame frame(kConstructStub, shared_info, height);
height);
frame.node_id_ = bailout_id; frame.node_id_ = bailout_id;
return frame; return frame;
} }
TranslatedFrame TranslatedFrame::BuiltinContinuationFrame( TranslatedFrame TranslatedFrame::BuiltinContinuationFrame(
BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) { BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) {
TranslatedFrame frame(kBuiltinContinuation, shared_info->GetIsolate(), TranslatedFrame frame(kBuiltinContinuation, shared_info, height);
shared_info, height);
frame.node_id_ = bailout_id; frame.node_id_ = bailout_id;
return frame; return frame;
} }
TranslatedFrame TranslatedFrame::JavaScriptBuiltinContinuationFrame( TranslatedFrame TranslatedFrame::JavaScriptBuiltinContinuationFrame(
BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) { BailoutId bailout_id, SharedFunctionInfo* shared_info, int height) {
TranslatedFrame frame(kJavaScriptBuiltinContinuation, TranslatedFrame frame(kJavaScriptBuiltinContinuation, shared_info, height);
shared_info->GetIsolate(), shared_info, height);
frame.node_id_ = bailout_id; frame.node_id_ = bailout_id;
return frame; return frame;
} }
......
...@@ -205,14 +205,12 @@ class TranslatedFrame { ...@@ -205,14 +205,12 @@ class TranslatedFrame {
static void AdvanceIterator(std::deque<TranslatedValue>::iterator* iter); static void AdvanceIterator(std::deque<TranslatedValue>::iterator* iter);
TranslatedFrame(Kind kind, Isolate* isolate, TranslatedFrame(Kind kind, SharedFunctionInfo* shared_info = nullptr,
SharedFunctionInfo* shared_info = nullptr, int height = 0) int height = 0)
: kind_(kind), : kind_(kind),
node_id_(BailoutId::None()), node_id_(BailoutId::None()),
raw_shared_info_(shared_info), raw_shared_info_(shared_info),
height_(height), height_(height) {}
isolate_(isolate) {}
void Add(const TranslatedValue& value) { values_.push_back(value); } void Add(const TranslatedValue& value) { values_.push_back(value); }
void Handlify(); void Handlify();
...@@ -222,7 +220,6 @@ class TranslatedFrame { ...@@ -222,7 +220,6 @@ class TranslatedFrame {
SharedFunctionInfo* raw_shared_info_; SharedFunctionInfo* raw_shared_info_;
Handle<SharedFunctionInfo> shared_info_; Handle<SharedFunctionInfo> shared_info_;
int height_; int height_;
Isolate* isolate_;
typedef std::deque<TranslatedValue> ValuesContainer; typedef std::deque<TranslatedValue> ValuesContainer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment