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 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 return MarkAsCall(DefineFixed(result, r0), instr); | 1418 return MarkAsCall(DefineFixed(result, r0), instr); |
1419 } | 1419 } |
1420 | 1420 |
1421 | 1421 |
1422 LInstruction* LChunkBuilder::DoCompareIDAndBranch( | 1422 LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
1423 HCompareIDAndBranch* instr) { | 1423 HCompareIDAndBranch* instr) { |
1424 Representation r = instr->GetInputRepresentation(); | 1424 Representation r = instr->GetInputRepresentation(); |
1425 if (r.IsInteger32()) { | 1425 if (r.IsInteger32()) { |
1426 ASSERT(instr->left()->representation().IsInteger32()); | 1426 ASSERT(instr->left()->representation().IsInteger32()); |
1427 ASSERT(instr->right()->representation().IsInteger32()); | 1427 ASSERT(instr->right()->representation().IsInteger32()); |
1428 LOperand* left = UseRegisterAtStart(instr->left()); | 1428 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
1429 LOperand* right = UseRegisterAtStart(instr->right()); | 1429 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
1430 return new LCmpIDAndBranch(left, right); | 1430 return new LCmpIDAndBranch(left, right); |
1431 } else { | 1431 } else { |
1432 ASSERT(r.IsDouble()); | 1432 ASSERT(r.IsDouble()); |
1433 ASSERT(instr->left()->representation().IsDouble()); | 1433 ASSERT(instr->left()->representation().IsDouble()); |
1434 ASSERT(instr->right()->representation().IsDouble()); | 1434 ASSERT(instr->right()->representation().IsDouble()); |
1435 LOperand* left = UseRegisterAtStart(instr->left()); | 1435 LOperand* left = UseRegisterAtStart(instr->left()); |
1436 LOperand* right = UseRegisterAtStart(instr->right()); | 1436 LOperand* right = UseRegisterAtStart(instr->right()); |
1437 return new LCmpIDAndBranch(left, right); | 1437 return new LCmpIDAndBranch(left, right); |
1438 } | 1438 } |
1439 } | 1439 } |
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2208 | 2208 |
2209 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2209 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2210 LOperand* key = UseRegisterAtStart(instr->key()); | 2210 LOperand* key = UseRegisterAtStart(instr->key()); |
2211 LOperand* object = UseRegisterAtStart(instr->object()); | 2211 LOperand* object = UseRegisterAtStart(instr->object()); |
2212 LIn* result = new LIn(key, object); | 2212 LIn* result = new LIn(key, object); |
2213 return MarkAsCall(DefineFixed(result, r0), instr); | 2213 return MarkAsCall(DefineFixed(result, r0), instr); |
2214 } | 2214 } |
2215 | 2215 |
2216 | 2216 |
2217 } } // namespace v8::internal | 2217 } } // namespace v8::internal |
OLD | NEW |