OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 2351 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
2352 info()->MarkAsRequiresFrame(); | 2352 info()->MarkAsRequiresFrame(); |
2353 LOperand* args = UseRegister(instr->arguments()); | 2353 LOperand* args = UseRegister(instr->arguments()); |
2354 LOperand* length; | 2354 LOperand* length; |
2355 LOperand* index; | 2355 LOperand* index; |
2356 if (instr->length()->IsConstant() && instr->index()->IsConstant()) { | 2356 if (instr->length()->IsConstant() && instr->index()->IsConstant()) { |
2357 length = UseRegisterOrConstant(instr->length()); | 2357 length = UseRegisterOrConstant(instr->length()); |
2358 index = UseOrConstant(instr->index()); | 2358 index = UseOrConstant(instr->index()); |
2359 } else { | 2359 } else { |
2360 length = UseTempRegister(instr->length()); | 2360 length = UseTempRegister(instr->length()); |
2361 index = Use(instr->index()); | 2361 index = UseRegisterAtStart(instr->index()); |
2362 } | 2362 } |
2363 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); | 2363 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); |
2364 } | 2364 } |
2365 | 2365 |
2366 | 2366 |
2367 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | 2367 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { |
2368 LOperand* object = UseFixed(instr->value(), a0); | 2368 LOperand* object = UseFixed(instr->value(), a0); |
2369 LToFastProperties* result = new(zone()) LToFastProperties(object); | 2369 LToFastProperties* result = new(zone()) LToFastProperties(object); |
2370 return MarkAsCall(DefineFixed(result, v0), instr); | 2370 return MarkAsCall(DefineFixed(result, v0), instr); |
2371 } | 2371 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 | 2499 |
2500 | 2500 |
2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2502 LOperand* object = UseRegister(instr->object()); | 2502 LOperand* object = UseRegister(instr->object()); |
2503 LOperand* index = UseRegister(instr->index()); | 2503 LOperand* index = UseRegister(instr->index()); |
2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2505 } | 2505 } |
2506 | 2506 |
2507 | 2507 |
2508 } } // namespace v8::internal | 2508 } } // namespace v8::internal |
OLD | NEW |