| 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 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2241 return MarkAsCall(new LStackCheck, instr); | 2241 return MarkAsCall(new LStackCheck, instr); |
| 2242 } | 2242 } |
| 2243 | 2243 |
| 2244 | 2244 |
| 2245 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2245 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 2246 HEnvironment* outer = current_block_->last_environment(); | 2246 HEnvironment* outer = current_block_->last_environment(); |
| 2247 HConstant* undefined = graph()->GetConstantUndefined(); | 2247 HConstant* undefined = graph()->GetConstantUndefined(); |
| 2248 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2248 HEnvironment* inner = outer->CopyForInlining(instr->closure(), |
| 2249 instr->function(), | 2249 instr->function(), |
| 2250 HEnvironment::LITHIUM, | 2250 HEnvironment::LITHIUM, |
| 2251 undefined); | 2251 undefined, |
| 2252 instr->receiver_type()); |
| 2252 current_block_->UpdateEnvironment(inner); | 2253 current_block_->UpdateEnvironment(inner); |
| 2253 chunk_->AddInlinedClosure(instr->closure()); | 2254 chunk_->AddInlinedClosure(instr->closure()); |
| 2254 return NULL; | 2255 return NULL; |
| 2255 } | 2256 } |
| 2256 | 2257 |
| 2257 | 2258 |
| 2258 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2259 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2259 HEnvironment* outer = current_block_->last_environment()->outer(); | 2260 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2260 current_block_->UpdateEnvironment(outer); | 2261 current_block_->UpdateEnvironment(outer); |
| 2261 return NULL; | 2262 return NULL; |
| 2262 } | 2263 } |
| 2263 | 2264 |
| 2264 | 2265 |
| 2265 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2266 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2266 LOperand* key = UseOrConstantAtStart(instr->key()); | 2267 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2267 LOperand* object = UseOrConstantAtStart(instr->object()); | 2268 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2268 LIn* result = new LIn(key, object); | 2269 LIn* result = new LIn(key, object); |
| 2269 return MarkAsCall(DefineFixed(result, eax), instr); | 2270 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2270 } | 2271 } |
| 2271 | 2272 |
| 2272 | 2273 |
| 2273 } } // namespace v8::internal | 2274 } } // namespace v8::internal |
| 2274 | 2275 |
| 2275 #endif // V8_TARGET_ARCH_IA32 | 2276 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |