OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 4623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4634 accumulator->Add("...\n"); | 4634 accumulator->Add("...\n"); |
4635 } else { | 4635 } else { |
4636 accumulator->Put(script_source, start_position(), end_position()); | 4636 accumulator->Put(script_source, start_position(), end_position()); |
4637 } | 4637 } |
4638 } | 4638 } |
4639 | 4639 |
4640 | 4640 |
4641 void SharedFunctionInfo::SharedFunctionInfoIterateBody(ObjectVisitor* v) { | 4641 void SharedFunctionInfo::SharedFunctionInfoIterateBody(ObjectVisitor* v) { |
4642 IteratePointers(v, kNameOffset, kCodeOffset + kPointerSize); | 4642 IteratePointers(v, kNameOffset, kCodeOffset + kPointerSize); |
4643 IteratePointers(v, kInstanceClassNameOffset, kScriptOffset + kPointerSize); | 4643 IteratePointers(v, kInstanceClassNameOffset, kScriptOffset + kPointerSize); |
4644 IteratePointer(v, kDebugInfoOffset); | 4644 IteratePointers(v, kDebugInfoOffset, kInferredNameOffset + kPointerSize); |
4645 } | 4645 } |
4646 | 4646 |
4647 | 4647 |
4648 void ObjectVisitor::BeginCodeIteration(Code* code) { | 4648 void ObjectVisitor::BeginCodeIteration(Code* code) { |
4649 ASSERT(code->ic_flag() == Code::IC_TARGET_IS_OBJECT); | 4649 ASSERT(code->ic_flag() == Code::IC_TARGET_IS_OBJECT); |
4650 } | 4650 } |
4651 | 4651 |
4652 | 4652 |
4653 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) { | 4653 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) { |
4654 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); | 4654 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); |
(...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7417 // No break point. | 7417 // No break point. |
7418 if (break_point_objects()->IsUndefined()) return 0; | 7418 if (break_point_objects()->IsUndefined()) return 0; |
7419 // Single beak point. | 7419 // Single beak point. |
7420 if (!break_point_objects()->IsFixedArray()) return 1; | 7420 if (!break_point_objects()->IsFixedArray()) return 1; |
7421 // Multiple break points. | 7421 // Multiple break points. |
7422 return FixedArray::cast(break_point_objects())->length(); | 7422 return FixedArray::cast(break_point_objects())->length(); |
7423 } | 7423 } |
7424 | 7424 |
7425 | 7425 |
7426 } } // namespace v8::internal | 7426 } } // namespace v8::internal |
OLD | NEW |