| 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 } else if (v->IsIsNull()) { | 1089 } else if (v->IsIsNull()) { |
| 1090 HIsNull* compare = HIsNull::cast(v); | 1090 HIsNull* compare = HIsNull::cast(v); |
| 1091 ASSERT(compare->value()->representation().IsTagged()); | 1091 ASSERT(compare->value()->representation().IsTagged()); |
| 1092 | 1092 |
| 1093 return new LIsNullAndBranch(UseRegisterAtStart(compare->value())); | 1093 return new LIsNullAndBranch(UseRegisterAtStart(compare->value())); |
| 1094 } else if (v->IsIsObject()) { | 1094 } else if (v->IsIsObject()) { |
| 1095 HIsObject* compare = HIsObject::cast(v); | 1095 HIsObject* compare = HIsObject::cast(v); |
| 1096 ASSERT(compare->value()->representation().IsTagged()); | 1096 ASSERT(compare->value()->representation().IsTagged()); |
| 1097 | 1097 |
| 1098 LOperand* temp = TempRegister(); | 1098 LOperand* temp = TempRegister(); |
| 1099 return new LIsObjectAndBranch(UseRegisterAtStart(compare->value()), temp); | 1099 return new LIsObjectAndBranch(UseRegister(compare->value()), temp); |
| 1100 } else if (v->IsCompareJSObjectEq()) { | 1100 } else if (v->IsCompareJSObjectEq()) { |
| 1101 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v); | 1101 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v); |
| 1102 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()), | 1102 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()), |
| 1103 UseRegisterAtStart(compare->right())); | 1103 UseRegisterAtStart(compare->right())); |
| 1104 } else if (v->IsInstanceOf()) { | 1104 } else if (v->IsInstanceOf()) { |
| 1105 HInstanceOf* instance_of = HInstanceOf::cast(v); | 1105 HInstanceOf* instance_of = HInstanceOf::cast(v); |
| 1106 LInstruction* result = | 1106 LInstruction* result = |
| 1107 new LInstanceOfAndBranch(UseFixed(instance_of->left(), r0), | 1107 new LInstanceOfAndBranch(UseFixed(instance_of->left(), r0), |
| 1108 UseFixed(instance_of->right(), r1)); | 1108 UseFixed(instance_of->right(), r1)); |
| 1109 return MarkAsCall(result, instr); | 1109 return MarkAsCall(result, instr); |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 | 2115 |
| 2116 | 2116 |
| 2117 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2117 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2118 HEnvironment* outer = current_block_->last_environment()->outer(); | 2118 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2119 current_block_->UpdateEnvironment(outer); | 2119 current_block_->UpdateEnvironment(outer); |
| 2120 return NULL; | 2120 return NULL; |
| 2121 } | 2121 } |
| 2122 | 2122 |
| 2123 | 2123 |
| 2124 } } // namespace v8::internal | 2124 } } // namespace v8::internal |
| OLD | NEW |