| 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 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 | 2070 |
| 2071 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2071 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 2072 HLoadFunctionPrototype* instr) { | 2072 HLoadFunctionPrototype* instr) { |
| 2073 return AssignEnvironment(DefineAsRegister( | 2073 return AssignEnvironment(DefineAsRegister( |
| 2074 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2074 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
| 2075 } | 2075 } |
| 2076 | 2076 |
| 2077 | 2077 |
| 2078 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
| 2079 return DefineAsRegister(new(zone()) LLoadRoot); |
| 2080 } |
| 2081 |
| 2082 |
| 2078 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 2083 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
| 2079 HLoadExternalArrayPointer* instr) { | 2084 HLoadExternalArrayPointer* instr) { |
| 2080 LOperand* input = UseRegisterAtStart(instr->value()); | 2085 LOperand* input = UseRegisterAtStart(instr->value()); |
| 2081 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 2086 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
| 2082 } | 2087 } |
| 2083 | 2088 |
| 2084 | 2089 |
| 2085 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 2090 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
| 2086 ASSERT(instr->key()->representation().IsInteger32()); | 2091 ASSERT(instr->key()->representation().IsInteger32()); |
| 2087 ElementsKind elements_kind = instr->elements_kind(); | 2092 ElementsKind elements_kind = instr->elements_kind(); |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2525 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2530 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2526 LOperand* object = UseRegister(instr->object()); | 2531 LOperand* object = UseRegister(instr->object()); |
| 2527 LOperand* index = UseTempRegister(instr->index()); | 2532 LOperand* index = UseTempRegister(instr->index()); |
| 2528 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2533 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2529 } | 2534 } |
| 2530 | 2535 |
| 2531 | 2536 |
| 2532 } } // namespace v8::internal | 2537 } } // namespace v8::internal |
| 2533 | 2538 |
| 2534 #endif // V8_TARGET_ARCH_X64 | 2539 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |