Commit 8ff59e8d authored by mstarzinger's avatar mstarzinger Committed by Commit bot

Make frames.h usable without handles-inl.h header.

This CL us a pure refactoring that makes an empty compilation unit
including just "frames.h" but not "handles-inl.h" compile without
warnings or errors. This is needed to further reduce the header
dependency tangle.

R=ishell@chromium.org

Review URL: https://codereview.chromium.org/1319423003

Cr-Commit-Position: refs/heads/master@{#30476}
parent d940690b
......@@ -879,6 +879,15 @@ void JavaScriptFrame::RestoreOperandStack(FixedArray* store) {
}
FrameSummary::FrameSummary(Object* receiver, JSFunction* function, Code* code,
int offset, bool is_constructor)
: receiver_(receiver, function->GetIsolate()),
function_(function),
code_(code),
offset_(offset),
is_constructor_(is_constructor) {}
void FrameSummary::Print() {
PrintF("receiver: ");
receiver_->ShortPrint();
......
......@@ -523,16 +523,9 @@ class StandardFrame: public StackFrame {
class FrameSummary BASE_EMBEDDED {
public:
FrameSummary(Object* receiver,
JSFunction* function,
Code* code,
int offset,
bool is_constructor)
: receiver_(receiver, function->GetIsolate()),
function_(function),
code_(code),
offset_(offset),
is_constructor_(is_constructor) { }
FrameSummary(Object* receiver, JSFunction* function, Code* code, int offset,
bool is_constructor);
Handle<Object> receiver() { return receiver_; }
Handle<JSFunction> function() { return function_; }
Handle<Code> code() { return code_; }
......
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