| 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 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 ASSERT(instr->right()->representation().IsTagged()); | 1423 ASSERT(instr->right()->representation().IsTagged()); |
| 1424 bool reversed = (op == Token::GT || op == Token::LTE); | 1424 bool reversed = (op == Token::GT || op == Token::LTE); |
| 1425 LOperand* context = UseFixed(instr->context(), esi); | 1425 LOperand* context = UseFixed(instr->context(), esi); |
| 1426 LOperand* left = UseFixed(instr->left(), reversed ? eax : edx); | 1426 LOperand* left = UseFixed(instr->left(), reversed ? eax : edx); |
| 1427 LOperand* right = UseFixed(instr->right(), reversed ? edx : eax); | 1427 LOperand* right = UseFixed(instr->right(), reversed ? edx : eax); |
| 1428 LCmpT* result = new LCmpT(context, left, right); | 1428 LCmpT* result = new LCmpT(context, left, right); |
| 1429 return MarkAsCall(DefineFixed(result, eax), instr); | 1429 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 | 1432 |
| 1433 LInstruction* LChunkBuilder::DoCompareIDAndBranch( | 1433 LInstruction* LChunkBuilder::DoCompareNumbersAndBranch( |
| 1434 HCompareIDAndBranch* instr) { | 1434 HCompareNumbersAndBranch* instr) { |
| 1435 Representation r = instr->GetInputRepresentation(); | 1435 Representation r = instr->GetInputRepresentation(); |
| 1436 if (r.IsInteger32()) { | 1436 if (r.IsInteger32()) { |
| 1437 ASSERT(instr->left()->representation().IsInteger32()); | 1437 ASSERT(instr->left()->representation().IsInteger32()); |
| 1438 ASSERT(instr->right()->representation().IsInteger32()); | 1438 ASSERT(instr->right()->representation().IsInteger32()); |
| 1439 LOperand* left = UseRegisterAtStart(instr->left()); | 1439 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1440 LOperand* right = UseOrConstantAtStart(instr->right()); | 1440 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 1441 return new LCmpIDAndBranch(left, right); | 1441 return new LCmpIDAndBranch(left, right); |
| 1442 } else { | 1442 } else { |
| 1443 ASSERT(r.IsDouble()); | 1443 ASSERT(r.IsDouble()); |
| 1444 ASSERT(instr->left()->representation().IsDouble()); | 1444 ASSERT(instr->left()->representation().IsDouble()); |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2256 LOperand* key = UseOrConstantAtStart(instr->key()); | 2256 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2257 LOperand* object = UseOrConstantAtStart(instr->object()); | 2257 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2258 LIn* result = new LIn(context, key, object); | 2258 LIn* result = new LIn(context, key, object); |
| 2259 return MarkAsCall(DefineFixed(result, eax), instr); | 2259 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2260 } | 2260 } |
| 2261 | 2261 |
| 2262 | 2262 |
| 2263 } } // namespace v8::internal | 2263 } } // namespace v8::internal |
| 2264 | 2264 |
| 2265 #endif // V8_TARGET_ARCH_IA32 | 2265 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |