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 3764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3775 | 3775 |
3776 | 3776 |
3777 void HOptimizedGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { | 3777 void HOptimizedGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { |
3778 ASSERT(!HasStackOverflow()); | 3778 ASSERT(!HasStackOverflow()); |
3779 ASSERT(current_block() != NULL); | 3779 ASSERT(current_block() != NULL); |
3780 ASSERT(current_block()->HasPredecessor()); | 3780 ASSERT(current_block()->HasPredecessor()); |
3781 return Bailout(kDebuggerStatement); | 3781 return Bailout(kDebuggerStatement); |
3782 } | 3782 } |
3783 | 3783 |
3784 | 3784 |
| 3785 void HOptimizedGraphBuilder::VisitCaseClause(CaseClause* clause) { |
| 3786 UNREACHABLE(); |
| 3787 } |
| 3788 |
| 3789 |
3785 static Handle<SharedFunctionInfo> SearchSharedFunctionInfo( | 3790 static Handle<SharedFunctionInfo> SearchSharedFunctionInfo( |
3786 Code* unoptimized_code, FunctionLiteral* expr) { | 3791 Code* unoptimized_code, FunctionLiteral* expr) { |
3787 int start_position = expr->start_position(); | 3792 int start_position = expr->start_position(); |
3788 for (RelocIterator it(unoptimized_code); !it.done(); it.next()) { | 3793 for (RelocIterator it(unoptimized_code); !it.done(); it.next()) { |
3789 RelocInfo* rinfo = it.rinfo(); | 3794 RelocInfo* rinfo = it.rinfo(); |
3790 if (rinfo->rmode() != RelocInfo::EMBEDDED_OBJECT) continue; | 3795 if (rinfo->rmode() != RelocInfo::EMBEDDED_OBJECT) continue; |
3791 Object* obj = rinfo->target_object(); | 3796 Object* obj = rinfo->target_object(); |
3792 if (obj->IsSharedFunctionInfo()) { | 3797 if (obj->IsSharedFunctionInfo()) { |
3793 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); | 3798 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); |
3794 if (shared->start_position() == start_position) { | 3799 if (shared->start_position() == start_position) { |
(...skipping 5885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9680 if (ShouldProduceTraceOutput()) { | 9685 if (ShouldProduceTraceOutput()) { |
9681 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9686 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
9682 } | 9687 } |
9683 | 9688 |
9684 #ifdef DEBUG | 9689 #ifdef DEBUG |
9685 graph_->Verify(false); // No full verify. | 9690 graph_->Verify(false); // No full verify. |
9686 #endif | 9691 #endif |
9687 } | 9692 } |
9688 | 9693 |
9689 } } // namespace v8::internal | 9694 } } // namespace v8::internal |
OLD | NEW |