| 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 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 } | 2064 } |
| 2065 | 2065 |
| 2066 | 2066 |
| 2067 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2067 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 2068 HLoadFunctionPrototype* instr) { | 2068 HLoadFunctionPrototype* instr) { |
| 2069 return AssignEnvironment(DefineAsRegister( | 2069 return AssignEnvironment(DefineAsRegister( |
| 2070 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2070 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
| 2071 } | 2071 } |
| 2072 | 2072 |
| 2073 | 2073 |
| 2074 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
| 2075 return DefineAsRegister(new(zone()) LLoadRoot); |
| 2076 } |
| 2077 |
| 2078 |
| 2074 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2079 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
| 2075 HLoadExternalArrayPointer* instr) { | 2080 HLoadExternalArrayPointer* instr) { |
| 2076 LOperand* input = UseRegisterAtStart(instr->value()); | 2081 LOperand* input = UseRegisterAtStart(instr->value()); |
| 2077 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2082 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
| 2078 } | 2083 } |
| 2079 | 2084 |
| 2080 | 2085 |
| 2081 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2086 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
| 2082 ASSERT(instr->key()->representation().IsSmiOrInteger32()); | 2087 ASSERT(instr->key()->representation().IsSmiOrInteger32()); |
| 2083 ElementsKind elements_kind = instr->elements_kind(); | 2088 ElementsKind elements_kind = instr->elements_kind(); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2499 | 2504 |
| 2500 | 2505 |
| 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2506 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2502 LOperand* object = UseRegister(instr->object()); | 2507 LOperand* object = UseRegister(instr->object()); |
| 2503 LOperand* index = UseRegister(instr->index()); | 2508 LOperand* index = UseRegister(instr->index()); |
| 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2509 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2505 } | 2510 } |
| 2506 | 2511 |
| 2507 | 2512 |
| 2508 } } // namespace v8::internal | 2513 } } // namespace v8::internal |
| OLD | NEW |