Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/arm/lithium-arm.h

Issue 22876009: Improve and simplify removal of unreachable code (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix ia32 Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/hydrogen.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2592 matching lines...) Expand 10 before | Expand all | Expand 10 after
2603 next_block_(NULL), 2603 next_block_(NULL),
2604 argument_count_(0), 2604 argument_count_(0),
2605 allocator_(allocator), 2605 allocator_(allocator),
2606 position_(RelocInfo::kNoPosition), 2606 position_(RelocInfo::kNoPosition),
2607 instruction_pending_deoptimization_environment_(NULL), 2607 instruction_pending_deoptimization_environment_(NULL),
2608 pending_deoptimization_ast_id_(BailoutId::None()) { } 2608 pending_deoptimization_ast_id_(BailoutId::None()) { }
2609 2609
2610 // Build the sequence for the graph. 2610 // Build the sequence for the graph.
2611 LPlatformChunk* Build(); 2611 LPlatformChunk* Build();
2612 2612
2613 LInstruction* ElideControlInstruction(HControlInstruction* instr,
2614 bool condition);
2615
2616 void PropagateUnreachableBlockMarks();
2617
2613 // Declare methods that deal with the individual node types. 2618 // Declare methods that deal with the individual node types.
2614 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2619 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2615 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2620 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2616 #undef DECLARE_DO 2621 #undef DECLARE_DO
2617 2622
2618 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); 2623 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend);
2619 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); 2624 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul);
2620 LInstruction* DoRSub(HSub* instr); 2625 LInstruction* DoRSub(HSub* instr);
2621 2626
2622 static bool HasMagicNumberForDivisor(int32_t divisor); 2627 static bool HasMagicNumberForDivisor(int32_t divisor);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 2766
2762 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2767 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2763 }; 2768 };
2764 2769
2765 #undef DECLARE_HYDROGEN_ACCESSOR 2770 #undef DECLARE_HYDROGEN_ACCESSOR
2766 #undef DECLARE_CONCRETE_INSTRUCTION 2771 #undef DECLARE_CONCRETE_INSTRUCTION
2767 2772
2768 } } // namespace v8::internal 2773 } } // namespace v8::internal
2769 2774
2770 #endif // V8_ARM_LITHIUM_ARM_H_ 2775 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698