| 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 // We only need a temp register for non-strict compare. | 1091 // We only need a temp register for non-strict compare. |
| 1092 LOperand* temp = compare->is_strict() ? NULL : TempRegister(); | 1092 LOperand* temp = compare->is_strict() ? NULL : TempRegister(); |
| 1093 return new LIsNullAndBranch(UseRegisterAtStart(compare->value()), | 1093 return new LIsNullAndBranch(UseRegisterAtStart(compare->value()), |
| 1094 temp); | 1094 temp); |
| 1095 } else if (v->IsIsObject()) { | 1095 } else if (v->IsIsObject()) { |
| 1096 HIsObject* compare = HIsObject::cast(v); | 1096 HIsObject* compare = HIsObject::cast(v); |
| 1097 ASSERT(compare->value()->representation().IsTagged()); | 1097 ASSERT(compare->value()->representation().IsTagged()); |
| 1098 | 1098 |
| 1099 LOperand* temp1 = TempRegister(); | 1099 LOperand* temp1 = TempRegister(); |
| 1100 LOperand* temp2 = TempRegister(); | 1100 LOperand* temp2 = TempRegister(); |
| 1101 return new LIsObjectAndBranch(UseRegisterAtStart(compare->value()), | 1101 return new LIsObjectAndBranch(UseRegister(compare->value()), |
| 1102 temp1, | 1102 temp1, |
| 1103 temp2); | 1103 temp2); |
| 1104 } else if (v->IsCompareJSObjectEq()) { | 1104 } else if (v->IsCompareJSObjectEq()) { |
| 1105 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v); | 1105 HCompareJSObjectEq* compare = HCompareJSObjectEq::cast(v); |
| 1106 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()), | 1106 return new LCmpJSObjectEqAndBranch(UseRegisterAtStart(compare->left()), |
| 1107 UseRegisterAtStart(compare->right())); | 1107 UseRegisterAtStart(compare->right())); |
| 1108 } else if (v->IsInstanceOf()) { | 1108 } else if (v->IsInstanceOf()) { |
| 1109 HInstanceOf* instance_of = HInstanceOf::cast(v); | 1109 HInstanceOf* instance_of = HInstanceOf::cast(v); |
| 1110 LOperand* left = UseFixed(instance_of->left(), InstanceofStub::left()); | 1110 LOperand* left = UseFixed(instance_of->left(), InstanceofStub::left()); |
| 1111 LOperand* right = UseFixed(instance_of->right(), InstanceofStub::right()); | 1111 LOperand* right = UseFixed(instance_of->right(), InstanceofStub::right()); |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2176 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2176 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2177 HEnvironment* outer = current_block_->last_environment()->outer(); | 2177 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2178 current_block_->UpdateEnvironment(outer); | 2178 current_block_->UpdateEnvironment(outer); |
| 2179 return NULL; | 2179 return NULL; |
| 2180 } | 2180 } |
| 2181 | 2181 |
| 2182 | 2182 |
| 2183 } } // namespace v8::internal | 2183 } } // namespace v8::internal |
| 2184 | 2184 |
| 2185 #endif // V8_TARGET_ARCH_IA32 | 2185 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |