| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 // space for nested functions that don't need literals cloning. If | 1325 // space for nested functions that don't need literals cloning. If |
| 1326 // we're running with the --always-opt or the --prepare-always-opt | 1326 // we're running with the --always-opt or the --prepare-always-opt |
| 1327 // flag, we need to use the runtime function so that the new function | 1327 // flag, we need to use the runtime function so that the new function |
| 1328 // we are creating here gets a chance to have its code optimized and | 1328 // we are creating here gets a chance to have its code optimized and |
| 1329 // doesn't just get a copy of the existing unoptimized code. | 1329 // doesn't just get a copy of the existing unoptimized code. |
| 1330 if (!FLAG_always_opt && | 1330 if (!FLAG_always_opt && |
| 1331 !FLAG_prepare_always_opt && | 1331 !FLAG_prepare_always_opt && |
| 1332 !pretenure && | 1332 !pretenure && |
| 1333 scope()->is_function_scope() && | 1333 scope()->is_function_scope() && |
| 1334 info->num_literals() == 0) { | 1334 info->num_literals() == 0) { |
| 1335 FastNewClosureStub stub(isolate(), | 1335 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind()); |
| 1336 info->strict_mode(), | |
| 1337 info->is_generator()); | |
| 1338 __ mov(r2, Operand(info)); | 1336 __ mov(r2, Operand(info)); |
| 1339 __ CallStub(&stub); | 1337 __ CallStub(&stub); |
| 1340 } else { | 1338 } else { |
| 1341 __ mov(r0, Operand(info)); | 1339 __ mov(r0, Operand(info)); |
| 1342 __ LoadRoot(r1, pretenure ? Heap::kTrueValueRootIndex | 1340 __ LoadRoot(r1, pretenure ? Heap::kTrueValueRootIndex |
| 1343 : Heap::kFalseValueRootIndex); | 1341 : Heap::kFalseValueRootIndex); |
| 1344 __ Push(cp, r0, r1); | 1342 __ Push(cp, r0, r1); |
| 1345 __ CallRuntime(Runtime::kNewClosure, 3); | 1343 __ CallRuntime(Runtime::kNewClosure, 3); |
| 1346 } | 1344 } |
| 1347 context()->Plug(r0); | 1345 context()->Plug(r0); |
| (...skipping 3577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4925 | 4923 |
| 4926 DCHECK(interrupt_address == | 4924 DCHECK(interrupt_address == |
| 4927 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4925 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4928 return OSR_AFTER_STACK_CHECK; | 4926 return OSR_AFTER_STACK_CHECK; |
| 4929 } | 4927 } |
| 4930 | 4928 |
| 4931 | 4929 |
| 4932 } } // namespace v8::internal | 4930 } } // namespace v8::internal |
| 4933 | 4931 |
| 4934 #endif // V8_TARGET_ARCH_ARM | 4932 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |