| 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 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2190 set_deoptimization_environment(result->environment()); | 2190 set_deoptimization_environment(result->environment()); |
| 2191 ClearInstructionPendingDeoptimizationEnvironment(); | 2191 ClearInstructionPendingDeoptimizationEnvironment(); |
| 2192 return result; | 2192 return result; |
| 2193 } | 2193 } |
| 2194 | 2194 |
| 2195 return NULL; | 2195 return NULL; |
| 2196 } | 2196 } |
| 2197 | 2197 |
| 2198 | 2198 |
| 2199 LInstruction* LChunkBuilder::DoStackCheck(HStackCheck* instr) { | 2199 LInstruction* LChunkBuilder::DoStackCheck(HStackCheck* instr) { |
| 2200 if (instr->is_function_entry()) { | 2200 return AssignEnvironment(AssignPointerMap(new LStackCheck)); |
| 2201 return MarkAsCall(new LStackCheck, instr); | |
| 2202 } else { | |
| 2203 ASSERT(instr->is_backwards_branch()); | |
| 2204 return AssignEnvironment(AssignPointerMap(new LStackCheck)); | |
| 2205 } | |
| 2206 } | 2201 } |
| 2207 | 2202 |
| 2208 | 2203 |
| 2209 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2204 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
| 2210 HEnvironment* outer = current_block_->last_environment(); | 2205 HEnvironment* outer = current_block_->last_environment(); |
| 2211 HConstant* undefined = graph()->GetConstantUndefined(); | 2206 HConstant* undefined = graph()->GetConstantUndefined(); |
| 2212 HEnvironment* inner = outer->CopyForInlining(instr->closure(), | 2207 HEnvironment* inner = outer->CopyForInlining(instr->closure(), |
| 2213 instr->function(), | 2208 instr->function(), |
| 2214 undefined, | 2209 undefined, |
| 2215 instr->call_kind()); | 2210 instr->call_kind()); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2228 | 2223 |
| 2229 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2224 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2230 LOperand* key = UseRegisterAtStart(instr->key()); | 2225 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2231 LOperand* object = UseRegisterAtStart(instr->object()); | 2226 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2232 LIn* result = new LIn(key, object); | 2227 LIn* result = new LIn(key, object); |
| 2233 return MarkAsCall(DefineFixed(result, v0), instr); | 2228 return MarkAsCall(DefineFixed(result, v0), instr); |
| 2234 } | 2229 } |
| 2235 | 2230 |
| 2236 | 2231 |
| 2237 } } // namespace v8::internal | 2232 } } // namespace v8::internal |
| OLD | NEW |