| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 | 1567 |
| 1568 // Compute this frame's PC, state, and continuation. | 1568 // Compute this frame's PC, state, and continuation. |
| 1569 Code* trampoline = NULL; | 1569 Code* trampoline = NULL; |
| 1570 StubFunctionMode function_mode = descriptor->function_mode_; | 1570 StubFunctionMode function_mode = descriptor->function_mode_; |
| 1571 StubFailureTrampolineStub(function_mode).FindCodeInCache(&trampoline, | 1571 StubFailureTrampolineStub(function_mode).FindCodeInCache(&trampoline, |
| 1572 isolate_); | 1572 isolate_); |
| 1573 ASSERT(trampoline != NULL); | 1573 ASSERT(trampoline != NULL); |
| 1574 output_frame->SetPc(reinterpret_cast<intptr_t>( | 1574 output_frame->SetPc(reinterpret_cast<intptr_t>( |
| 1575 trampoline->instruction_start())); | 1575 trampoline->instruction_start())); |
| 1576 output_frame->SetState(Smi::FromInt(FullCodeGenerator::NO_REGISTERS)); | 1576 output_frame->SetState(Smi::FromInt(FullCodeGenerator::NO_REGISTERS)); |
| 1577 Code* notify_failure = | 1577 Code* notify_failure = NotifyStubFailureBuiltin(); |
| 1578 isolate_->builtins()->builtin(Builtins::kNotifyStubFailure); | |
| 1579 output_frame->SetContinuation( | 1578 output_frame->SetContinuation( |
| 1580 reinterpret_cast<intptr_t>(notify_failure->entry())); | 1579 reinterpret_cast<intptr_t>(notify_failure->entry())); |
| 1581 } | 1580 } |
| 1582 | 1581 |
| 1583 | 1582 |
| 1584 Handle<Object> Deoptimizer::MaterializeNextHeapObject() { | 1583 Handle<Object> Deoptimizer::MaterializeNextHeapObject() { |
| 1585 int object_index = materialization_object_index_++; | 1584 int object_index = materialization_object_index_++; |
| 1586 ObjectMaterializationDescriptor desc = deferred_objects_[object_index]; | 1585 ObjectMaterializationDescriptor desc = deferred_objects_[object_index]; |
| 1587 const int length = desc.object_length(); | 1586 const int length = desc.object_length(); |
| 1588 | 1587 |
| (...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3051 | 3050 |
| 3052 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 3051 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 3053 v->VisitPointer(BitCast<Object**>(&function_)); | 3052 v->VisitPointer(BitCast<Object**>(&function_)); |
| 3054 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 3053 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 3055 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 3054 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 3056 } | 3055 } |
| 3057 | 3056 |
| 3058 #endif // ENABLE_DEBUGGER_SUPPORT | 3057 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3059 | 3058 |
| 3060 } } // namespace v8::internal | 3059 } } // namespace v8::internal |
| OLD | NEW |