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