| 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 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 // | caller stack param n | | 1615 // | caller stack param n | |
| 1616 // +-------------------------+<-spreg | 1616 // +-------------------------+<-spreg |
| 1617 // reg = number of parameters | 1617 // reg = number of parameters |
| 1618 // reg = failure handler address | 1618 // reg = failure handler address |
| 1619 // reg = saved frame | 1619 // reg = saved frame |
| 1620 // reg = JSFunction context | 1620 // reg = JSFunction context |
| 1621 // | 1621 // |
| 1622 | 1622 |
| 1623 CHECK(compiled_code_->is_hydrogen_stub()); | 1623 CHECK(compiled_code_->is_hydrogen_stub()); |
| 1624 int major_key = CodeStub::GetMajorKey(compiled_code_); | 1624 int major_key = CodeStub::GetMajorKey(compiled_code_); |
| 1625 CodeStubInterfaceDescriptor descriptor; | 1625 CodeStubInterfaceDescriptor descriptor(isolate_, compiled_code_->stub_key()); |
| 1626 CodeStub::InitializeInterfaceDescriptor(isolate_, compiled_code_->stub_key(), | |
| 1627 &descriptor); | |
| 1628 // Check that there is a matching descriptor to the major key. | 1626 // Check that there is a matching descriptor to the major key. |
| 1629 // This will fail if there has not been one installed to the isolate. | 1627 // This will fail if there has not been one installed to the isolate. |
| 1630 DCHECK_EQ(descriptor.MajorKey(), major_key); | 1628 DCHECK_EQ(descriptor.MajorKey(), major_key); |
| 1631 | 1629 |
| 1632 // The output frame must have room for all pushed register parameters | 1630 // The output frame must have room for all pushed register parameters |
| 1633 // and the standard stack frame slots. Include space for an argument | 1631 // and the standard stack frame slots. Include space for an argument |
| 1634 // object to the callee and optionally the space to pass the argument | 1632 // object to the callee and optionally the space to pass the argument |
| 1635 // object to the stub failure handler. | 1633 // object to the stub failure handler. |
| 1636 int param_count = descriptor.GetEnvironmentParameterCount(); | 1634 int param_count = descriptor.GetEnvironmentParameterCount(); |
| 1637 CHECK_GE(param_count, 0); | 1635 CHECK_GE(param_count, 0); |
| (...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3675 | 3673 |
| 3676 | 3674 |
| 3677 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 3675 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 3678 v->VisitPointer(BitCast<Object**>(&function_)); | 3676 v->VisitPointer(BitCast<Object**>(&function_)); |
| 3679 v->VisitPointer(&context_); | 3677 v->VisitPointer(&context_); |
| 3680 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 3678 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 3681 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 3679 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 3682 } | 3680 } |
| 3683 | 3681 |
| 3684 } } // namespace v8::internal | 3682 } } // namespace v8::internal |
| OLD | NEW |