| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
| (...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 // +-------------------------+ | 1542 // +-------------------------+ |
| 1543 // | caller stack param n | | 1543 // | caller stack param n | |
| 1544 // +-------------------------+<-spreg | 1544 // +-------------------------+<-spreg |
| 1545 // reg = number of parameters | 1545 // reg = number of parameters |
| 1546 // reg = failure handler address | 1546 // reg = failure handler address |
| 1547 // reg = saved frame | 1547 // reg = saved frame |
| 1548 // reg = JSFunction context | 1548 // reg = JSFunction context |
| 1549 // | 1549 // |
| 1550 | 1550 |
| 1551 CHECK(compiled_code_->is_hydrogen_stub()); | 1551 CHECK(compiled_code_->is_hydrogen_stub()); |
| 1552 int major_key = compiled_code_->major_key(); | 1552 int major_key = CodeStub::GetMajorKey(compiled_code_); |
| 1553 CodeStubInterfaceDescriptor* descriptor = | 1553 CodeStubInterfaceDescriptor* descriptor = |
| 1554 isolate_->code_stub_interface_descriptor(major_key); | 1554 isolate_->code_stub_interface_descriptor(major_key); |
| 1555 | 1555 |
| 1556 // The output frame must have room for all pushed register parameters | 1556 // The output frame must have room for all pushed register parameters |
| 1557 // and the standard stack frame slots. Include space for an argument | 1557 // and the standard stack frame slots. Include space for an argument |
| 1558 // object to the callee and optionally the space to pass the argument | 1558 // object to the callee and optionally the space to pass the argument |
| 1559 // object to the stub failure handler. | 1559 // object to the stub failure handler. |
| 1560 int param_count = descriptor->GetEnvironmentParameterCount(); | 1560 int param_count = descriptor->GetEnvironmentParameterCount(); |
| 1561 CHECK_GE(param_count, 0); | 1561 CHECK_GE(param_count, 0); |
| 1562 | 1562 |
| (...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3590 } | 3590 } |
| 3591 | 3591 |
| 3592 | 3592 |
| 3593 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 3593 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 3594 v->VisitPointer(BitCast<Object**>(&function_)); | 3594 v->VisitPointer(BitCast<Object**>(&function_)); |
| 3595 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 3595 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 3596 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 3596 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 3597 } | 3597 } |
| 3598 | 3598 |
| 3599 } } // namespace v8::internal | 3599 } } // namespace v8::internal |
| OLD | NEW |