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}
This commit is contained in:
mstarzinger 2015-08-31 08:04:22 -07:00 committed by Commit bot
parent d940690bb5
commit 8ff59e8d39
2 changed files with 12 additions and 10 deletions

View File

@ -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();

View File

@ -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_; }