| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2887 ZoneList<Expression*>* args = expr->arguments(); | 2887 ZoneList<Expression*>* args = expr->arguments(); |
| 2888 int arg_count = args->length(); | 2888 int arg_count = args->length(); |
| 2889 { PreservePositionScope scope(masm()->positions_recorder()); | 2889 { PreservePositionScope scope(masm()->positions_recorder()); |
| 2890 for (int i = 0; i < arg_count; i++) { | 2890 for (int i = 0; i < arg_count; i++) { |
| 2891 VisitForStackValue(args->at(i)); | 2891 VisitForStackValue(args->at(i)); |
| 2892 } | 2892 } |
| 2893 } | 2893 } |
| 2894 | 2894 |
| 2895 // Record source position of the IC call. | 2895 // Record source position of the IC call. |
| 2896 SetSourcePosition(expr->position()); | 2896 SetSourcePosition(expr->position()); |
| 2897 Handle<Code> ic = CallIC::initialize_stub( | 2897 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code(); |
| 2898 isolate(), arg_count, call_type); | |
| 2899 __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot()))); | 2898 __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot()))); |
| 2900 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); | 2899 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); |
| 2901 // Don't assign a type feedback id to the IC, since type feedback is provided | 2900 // Don't assign a type feedback id to the IC, since type feedback is provided |
| 2902 // by the vector above. | 2901 // by the vector above. |
| 2903 CallIC(ic); | 2902 CallIC(ic); |
| 2904 | 2903 |
| 2905 RecordJSReturnSite(expr); | 2904 RecordJSReturnSite(expr); |
| 2906 | 2905 |
| 2907 // Restore context register. | 2906 // Restore context register. |
| 2908 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2907 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| (...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5271 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5270 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5272 Assembler::target_address_at(call_target_address, | 5271 Assembler::target_address_at(call_target_address, |
| 5273 unoptimized_code)); | 5272 unoptimized_code)); |
| 5274 return OSR_AFTER_STACK_CHECK; | 5273 return OSR_AFTER_STACK_CHECK; |
| 5275 } | 5274 } |
| 5276 | 5275 |
| 5277 | 5276 |
| 5278 } } // namespace v8::internal | 5277 } } // namespace v8::internal |
| 5279 | 5278 |
| 5280 #endif // V8_TARGET_ARCH_X87 | 5279 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |