OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/crankshaft/s390/lithium-s390.h" | 5 #include "src/crankshaft/s390/lithium-s390.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2231 AssignPointerMap(new (zone()) LStackCheck(context))); | 2231 AssignPointerMap(new (zone()) LStackCheck(context))); |
2232 } | 2232 } |
2233 } | 2233 } |
2234 | 2234 |
2235 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { | 2235 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
2236 HEnvironment* outer = current_block_->last_environment(); | 2236 HEnvironment* outer = current_block_->last_environment(); |
2237 outer->set_ast_id(instr->ReturnId()); | 2237 outer->set_ast_id(instr->ReturnId()); |
2238 HConstant* undefined = graph()->GetConstantUndefined(); | 2238 HConstant* undefined = graph()->GetConstantUndefined(); |
2239 HEnvironment* inner = outer->CopyForInlining( | 2239 HEnvironment* inner = outer->CopyForInlining( |
2240 instr->closure(), instr->arguments_count(), instr->function(), undefined, | 2240 instr->closure(), instr->arguments_count(), instr->function(), undefined, |
2241 instr->inlining_kind()); | 2241 instr->inlining_kind(), instr->syntactic_tail_call_mode()); |
2242 // Only replay binding of arguments object if it wasn't removed from graph. | 2242 // Only replay binding of arguments object if it wasn't removed from graph. |
2243 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { | 2243 if (instr->arguments_var() != NULL && instr->arguments_object()->IsLinked()) { |
2244 inner->Bind(instr->arguments_var(), instr->arguments_object()); | 2244 inner->Bind(instr->arguments_var(), instr->arguments_object()); |
2245 } | 2245 } |
2246 inner->BindContext(instr->closure_context()); | 2246 inner->BindContext(instr->closure_context()); |
2247 inner->set_entry(instr); | 2247 inner->set_entry(instr); |
2248 current_block_->UpdateEnvironment(inner); | 2248 current_block_->UpdateEnvironment(inner); |
2249 chunk_->AddInlinedFunction(instr->shared()); | 2249 chunk_->AddInlinedFunction(instr->shared()); |
2250 return NULL; | 2250 return NULL; |
2251 } | 2251 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 return AssignPointerMap(result); | 2295 return AssignPointerMap(result); |
2296 } | 2296 } |
2297 | 2297 |
2298 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2298 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2299 LOperand* context = UseRegisterAtStart(instr->context()); | 2299 LOperand* context = UseRegisterAtStart(instr->context()); |
2300 return new (zone()) LStoreFrameContext(context); | 2300 return new (zone()) LStoreFrameContext(context); |
2301 } | 2301 } |
2302 | 2302 |
2303 } // namespace internal | 2303 } // namespace internal |
2304 } // namespace v8 | 2304 } // namespace v8 |
OLD | NEW |