| 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 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2971 int arg_count = args->length(); | 2971 int arg_count = args->length(); |
| 2972 { PreservePositionScope scope(masm()->positions_recorder()); | 2972 { PreservePositionScope scope(masm()->positions_recorder()); |
| 2973 for (int i = 0; i < arg_count; i++) { | 2973 for (int i = 0; i < arg_count; i++) { |
| 2974 VisitForStackValue(args->at(i)); | 2974 VisitForStackValue(args->at(i)); |
| 2975 } | 2975 } |
| 2976 } | 2976 } |
| 2977 | 2977 |
| 2978 // Record source position of the IC call. | 2978 // Record source position of the IC call. |
| 2979 SetSourcePosition(expr->position()); | 2979 SetSourcePosition(expr->position()); |
| 2980 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code(); | 2980 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code(); |
| 2981 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackSlot()))); | 2981 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); |
| 2982 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2982 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
| 2983 // Don't assign a type feedback id to the IC, since type feedback is provided | 2983 // Don't assign a type feedback id to the IC, since type feedback is provided |
| 2984 // by the vector above. | 2984 // by the vector above. |
| 2985 CallIC(ic); | 2985 CallIC(ic); |
| 2986 RecordJSReturnSite(expr); | 2986 RecordJSReturnSite(expr); |
| 2987 // Restore context register. | 2987 // Restore context register. |
| 2988 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2988 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 2989 context()->DropAndPlug(1, v0); | 2989 context()->DropAndPlug(1, v0); |
| 2990 } | 2990 } |
| 2991 | 2991 |
| (...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5347 Assembler::target_address_at(pc_immediate_load_address)) == | 5347 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5348 reinterpret_cast<uint64_t>( | 5348 reinterpret_cast<uint64_t>( |
| 5349 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5349 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5350 return OSR_AFTER_STACK_CHECK; | 5350 return OSR_AFTER_STACK_CHECK; |
| 5351 } | 5351 } |
| 5352 | 5352 |
| 5353 | 5353 |
| 5354 } } // namespace v8::internal | 5354 } } // namespace v8::internal |
| 5355 | 5355 |
| 5356 #endif // V8_TARGET_ARCH_MIPS64 | 5356 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |