| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 // space for nested functions that don't need literals cloning. If | 1312 // space for nested functions that don't need literals cloning. If |
| 1313 // we're running with the --always-opt or the --prepare-always-opt | 1313 // we're running with the --always-opt or the --prepare-always-opt |
| 1314 // flag, we need to use the runtime function so that the new function | 1314 // flag, we need to use the runtime function so that the new function |
| 1315 // we are creating here gets a chance to have its code optimized and | 1315 // we are creating here gets a chance to have its code optimized and |
| 1316 // doesn't just get a copy of the existing unoptimized code. | 1316 // doesn't just get a copy of the existing unoptimized code. |
| 1317 if (!FLAG_always_opt && | 1317 if (!FLAG_always_opt && |
| 1318 !FLAG_prepare_always_opt && | 1318 !FLAG_prepare_always_opt && |
| 1319 !pretenure && | 1319 !pretenure && |
| 1320 scope()->is_function_scope() && | 1320 scope()->is_function_scope() && |
| 1321 info->num_literals() == 0) { | 1321 info->num_literals() == 0) { |
| 1322 FastNewClosureStub stub(isolate(), | 1322 FastNewClosureStub stub(isolate(), info->strict_mode(), info->kind()); |
| 1323 info->strict_mode(), | |
| 1324 info->is_generator()); | |
| 1325 __ li(a2, Operand(info)); | 1323 __ li(a2, Operand(info)); |
| 1326 __ CallStub(&stub); | 1324 __ CallStub(&stub); |
| 1327 } else { | 1325 } else { |
| 1328 __ li(a0, Operand(info)); | 1326 __ li(a0, Operand(info)); |
| 1329 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex | 1327 __ LoadRoot(a1, pretenure ? Heap::kTrueValueRootIndex |
| 1330 : Heap::kFalseValueRootIndex); | 1328 : Heap::kFalseValueRootIndex); |
| 1331 __ Push(cp, a0, a1); | 1329 __ Push(cp, a0, a1); |
| 1332 __ CallRuntime(Runtime::kNewClosure, 3); | 1330 __ CallRuntime(Runtime::kNewClosure, 3); |
| 1333 } | 1331 } |
| 1334 context()->Plug(v0); | 1332 context()->Plug(v0); |
| (...skipping 3544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4879 Assembler::target_address_at(pc_immediate_load_address)) == | 4877 Assembler::target_address_at(pc_immediate_load_address)) == |
| 4880 reinterpret_cast<uint32_t>( | 4878 reinterpret_cast<uint32_t>( |
| 4881 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4879 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4882 return OSR_AFTER_STACK_CHECK; | 4880 return OSR_AFTER_STACK_CHECK; |
| 4883 } | 4881 } |
| 4884 | 4882 |
| 4885 | 4883 |
| 4886 } } // namespace v8::internal | 4884 } } // namespace v8::internal |
| 4887 | 4885 |
| 4888 #endif // V8_TARGET_ARCH_MIPS | 4886 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |