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:
parent
d940690bb5
commit
8ff59e8d39
@ -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();
|
||||
|
13
src/frames.h
13
src/frames.h
@ -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_; }
|
||||
|
Loading…
Reference in New Issue
Block a user