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