OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 LInstanceOfAndBranch* result = | 1113 LInstanceOfAndBranch* result = |
1114 new LInstanceOfAndBranch(context, left, right); | 1114 new LInstanceOfAndBranch(context, left, right); |
1115 return MarkAsCall(result, instr); | 1115 return MarkAsCall(result, instr); |
1116 } else if (v->IsTypeofIs()) { | 1116 } else if (v->IsTypeofIs()) { |
1117 HTypeofIs* typeof_is = HTypeofIs::cast(v); | 1117 HTypeofIs* typeof_is = HTypeofIs::cast(v); |
1118 return new LTypeofIsAndBranch(UseTempRegister(typeof_is->value())); | 1118 return new LTypeofIsAndBranch(UseTempRegister(typeof_is->value())); |
1119 } else if (v->IsIsConstructCall()) { | 1119 } else if (v->IsIsConstructCall()) { |
1120 return new LIsConstructCallAndBranch(TempRegister()); | 1120 return new LIsConstructCallAndBranch(TempRegister()); |
1121 } else { | 1121 } else { |
1122 if (v->IsConstant()) { | 1122 if (v->IsConstant()) { |
1123 if (HConstant::cast(v)->handle()->IsTrue()) { | 1123 if (HConstant::cast(v)->ToBoolean()) { |
1124 return new LGoto(instr->FirstSuccessor()->block_id()); | 1124 return new LGoto(instr->FirstSuccessor()->block_id()); |
1125 } else if (HConstant::cast(v)->handle()->IsFalse()) { | 1125 } else { |
1126 return new LGoto(instr->SecondSuccessor()->block_id()); | 1126 return new LGoto(instr->SecondSuccessor()->block_id()); |
1127 } | 1127 } |
1128 } | 1128 } |
1129 Abort("Undefined compare before branch"); | 1129 Abort("Undefined compare before branch"); |
1130 return NULL; | 1130 return NULL; |
1131 } | 1131 } |
1132 } | 1132 } |
1133 return new LBranch(UseRegisterAtStart(v)); | 1133 return new LBranch(UseRegisterAtStart(v)); |
1134 } | 1134 } |
1135 | 1135 |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2172 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2172 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2173 HEnvironment* outer = current_block_->last_environment()->outer(); | 2173 HEnvironment* outer = current_block_->last_environment()->outer(); |
2174 current_block_->UpdateEnvironment(outer); | 2174 current_block_->UpdateEnvironment(outer); |
2175 return NULL; | 2175 return NULL; |
2176 } | 2176 } |
2177 | 2177 |
2178 | 2178 |
2179 } } // namespace v8::internal | 2179 } } // namespace v8::internal |
2180 | 2180 |
2181 #endif // V8_TARGET_ARCH_IA32 | 2181 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |