| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 | 822 |
| 823 | 823 |
| 824 // Undoes the effects of ReserveSpaceForFastApiCall. | 824 // Undoes the effects of ReserveSpaceForFastApiCall. |
| 825 static void FreeSpaceForFastApiCall(MacroAssembler* masm) { | 825 static void FreeSpaceForFastApiCall(MacroAssembler* masm) { |
| 826 __ Drop(kFastApiCallArguments); | 826 __ Drop(kFastApiCallArguments); |
| 827 } | 827 } |
| 828 | 828 |
| 829 | 829 |
| 830 static void GenerateFastApiDirectCall(MacroAssembler* masm, | 830 static void GenerateFastApiDirectCall(MacroAssembler* masm, |
| 831 const CallOptimization& optimization, | 831 const CallOptimization& optimization, |
| 832 int argc) { | 832 int argc, |
| 833 bool restore_context) { |
| 833 // ----------- S t a t e ------------- | 834 // ----------- S t a t e ------------- |
| 834 // -- sp[0] : holder (set by CheckPrototypes) | 835 // -- sp[0] : context |
| 835 // -- sp[4] : callee JS function | 836 // -- sp[4] : holder (set by CheckPrototypes) |
| 836 // -- sp[8] : call data | 837 // -- sp[8] : callee JS function |
| 837 // -- sp[12] : isolate | 838 // -- sp[12] : call data |
| 838 // -- sp[16] : ReturnValue default value | 839 // -- sp[16] : isolate |
| 839 // -- sp[20] : ReturnValue | 840 // -- sp[20] : ReturnValue default value |
| 840 // -- sp[24] : last JS argument | 841 // -- sp[24] : ReturnValue |
| 842 // -- sp[28] : last JS argument |
| 841 // -- ... | 843 // -- ... |
| 842 // -- sp[(argc + 5) * 4] : first JS argument | 844 // -- sp[(argc + 6) * 4] : first JS argument |
| 843 // -- sp[(argc + 6) * 4] : receiver | 845 // -- sp[(argc + 7) * 4] : receiver |
| 844 // ----------------------------------- | 846 // ----------------------------------- |
| 847 // Save calling context. |
| 848 __ sw(cp, MemOperand(sp)); |
| 845 // Get the function and setup the context. | 849 // Get the function and setup the context. |
| 846 Handle<JSFunction> function = optimization.constant_function(); | 850 Handle<JSFunction> function = optimization.constant_function(); |
| 847 __ LoadHeapObject(t1, function); | 851 __ LoadHeapObject(t1, function); |
| 848 __ lw(cp, FieldMemOperand(t1, JSFunction::kContextOffset)); | 852 __ lw(cp, FieldMemOperand(t1, JSFunction::kContextOffset)); |
| 853 __ sw(t1, MemOperand(sp, 2 * kPointerSize)); |
| 849 | 854 |
| 850 // Pass the additional arguments. | 855 // Pass the additional arguments. |
| 851 Handle<CallHandlerInfo> api_call_info = optimization.api_call_info(); | 856 Handle<CallHandlerInfo> api_call_info = optimization.api_call_info(); |
| 852 Handle<Object> call_data(api_call_info->data(), masm->isolate()); | 857 Handle<Object> call_data(api_call_info->data(), masm->isolate()); |
| 853 if (masm->isolate()->heap()->InNewSpace(*call_data)) { | 858 if (masm->isolate()->heap()->InNewSpace(*call_data)) { |
| 854 __ li(a0, api_call_info); | 859 __ li(a0, api_call_info); |
| 855 __ lw(t2, FieldMemOperand(a0, CallHandlerInfo::kDataOffset)); | 860 __ lw(t2, FieldMemOperand(a0, CallHandlerInfo::kDataOffset)); |
| 856 } else { | 861 } else { |
| 857 __ li(t2, call_data); | 862 __ li(t2, call_data); |
| 858 } | 863 } |
| 859 | 864 // Store call data. |
| 865 __ sw(t2, MemOperand(sp, 3 * kPointerSize)); |
| 866 // Store isolate. |
| 860 __ li(t3, Operand(ExternalReference::isolate_address(masm->isolate()))); | 867 __ li(t3, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 861 // Store JS function, call data, isolate ReturnValue default and ReturnValue. | 868 __ sw(t3, MemOperand(sp, 4 * kPointerSize)); |
| 862 __ sw(t1, MemOperand(sp, 1 * kPointerSize)); | 869 // Store ReturnValue default and ReturnValue. |
| 863 __ sw(t2, MemOperand(sp, 2 * kPointerSize)); | |
| 864 __ sw(t3, MemOperand(sp, 3 * kPointerSize)); | |
| 865 __ LoadRoot(t1, Heap::kUndefinedValueRootIndex); | 870 __ LoadRoot(t1, Heap::kUndefinedValueRootIndex); |
| 866 __ sw(t1, MemOperand(sp, 4 * kPointerSize)); | |
| 867 __ sw(t1, MemOperand(sp, 5 * kPointerSize)); | 871 __ sw(t1, MemOperand(sp, 5 * kPointerSize)); |
| 872 __ sw(t1, MemOperand(sp, 6 * kPointerSize)); |
| 868 | 873 |
| 869 // Prepare arguments. | 874 // Prepare arguments. |
| 870 __ Addu(a2, sp, Operand(5 * kPointerSize)); | 875 __ Addu(a2, sp, Operand((kFastApiCallArguments - 1) * kPointerSize)); |
| 871 | 876 |
| 872 // Allocate the v8::Arguments structure in the arguments' space since | 877 // Allocate the v8::Arguments structure in the arguments' space since |
| 873 // it's not controlled by GC. | 878 // it's not controlled by GC. |
| 874 const int kApiStackSpace = 4; | 879 const int kApiStackSpace = 4; |
| 875 | 880 |
| 876 FrameScope frame_scope(masm, StackFrame::MANUAL); | 881 FrameScope frame_scope(masm, StackFrame::MANUAL); |
| 877 __ EnterExitFrame(false, kApiStackSpace); | 882 __ EnterExitFrame(false, kApiStackSpace); |
| 878 | 883 |
| 879 // a0 = v8::Arguments& | 884 // a0 = v8::Arguments& |
| 880 // Arguments is built at sp + 1 (sp is a reserved spot for ra). | 885 // Arguments is built at sp + 1 (sp is a reserved spot for ra). |
| (...skipping 18 matching lines...) Expand all Loading... |
| 899 ExternalReference(&fun, | 904 ExternalReference(&fun, |
| 900 type, | 905 type, |
| 901 masm->isolate()); | 906 masm->isolate()); |
| 902 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback); | 907 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback); |
| 903 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL; | 908 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL; |
| 904 ApiFunction thunk_fun(thunk_address); | 909 ApiFunction thunk_fun(thunk_address); |
| 905 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, | 910 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, |
| 906 masm->isolate()); | 911 masm->isolate()); |
| 907 | 912 |
| 908 AllowExternalCallThatCantCauseGC scope(masm); | 913 AllowExternalCallThatCantCauseGC scope(masm); |
| 914 MemOperand context_restore_operand( |
| 915 fp, 2 * kPointerSize); |
| 916 MemOperand return_value_operand( |
| 917 fp, (kFastApiCallArguments + 1) * kPointerSize); |
| 909 __ CallApiFunctionAndReturn(ref, | 918 __ CallApiFunctionAndReturn(ref, |
| 910 function_address, | 919 function_address, |
| 911 thunk_ref, | 920 thunk_ref, |
| 912 a1, | 921 a1, |
| 913 kStackUnwindSpace, | 922 kStackUnwindSpace, |
| 914 kFastApiCallArguments + 1); | 923 return_value_operand, |
| 924 restore_context ? |
| 925 &context_restore_operand : NULL); |
| 915 } | 926 } |
| 916 | 927 |
| 917 | 928 |
| 918 // Generate call to api function. | 929 // Generate call to api function. |
| 919 static void GenerateFastApiCall(MacroAssembler* masm, | 930 static void GenerateFastApiCall(MacroAssembler* masm, |
| 920 const CallOptimization& optimization, | 931 const CallOptimization& optimization, |
| 921 Register receiver, | 932 Register receiver, |
| 922 Register scratch, | 933 Register scratch, |
| 923 int argc, | 934 int argc, |
| 924 Register* values) { | 935 Register* values) { |
| 925 ASSERT(optimization.is_simple_api_call()); | 936 ASSERT(optimization.is_simple_api_call()); |
| 926 ASSERT(!receiver.is(scratch)); | 937 ASSERT(!receiver.is(scratch)); |
| 927 | 938 |
| 928 const int stack_space = kFastApiCallArguments + argc + 1; | 939 const int stack_space = kFastApiCallArguments + argc + 1; |
| 940 const int kHolderIndex = kFastApiCallArguments + |
| 941 FunctionCallbackArguments::kHolderIndex - 1; |
| 929 // Assign stack space for the call arguments. | 942 // Assign stack space for the call arguments. |
| 930 __ Subu(sp, sp, Operand(stack_space * kPointerSize)); | 943 __ Subu(sp, sp, Operand(stack_space * kPointerSize)); |
| 931 // Write holder to stack frame. | 944 // Write holder to stack frame. |
| 932 __ sw(receiver, MemOperand(sp, 0)); | 945 __ sw(receiver, MemOperand(sp, kHolderIndex * kPointerSize)); |
| 933 // Write receiver to stack frame. | 946 // Write receiver to stack frame. |
| 934 int index = stack_space - 1; | 947 int index = stack_space - 1; |
| 935 __ sw(receiver, MemOperand(sp, index * kPointerSize)); | 948 __ sw(receiver, MemOperand(sp, index * kPointerSize)); |
| 936 // Write the arguments to stack frame. | 949 // Write the arguments to stack frame. |
| 937 for (int i = 0; i < argc; i++) { | 950 for (int i = 0; i < argc; i++) { |
| 938 ASSERT(!receiver.is(values[i])); | 951 ASSERT(!receiver.is(values[i])); |
| 939 ASSERT(!scratch.is(values[i])); | 952 ASSERT(!scratch.is(values[i])); |
| 940 __ sw(receiver, MemOperand(sp, index-- * kPointerSize)); | 953 __ sw(receiver, MemOperand(sp, index-- * kPointerSize)); |
| 941 } | 954 } |
| 942 | 955 |
| 943 GenerateFastApiDirectCall(masm, optimization, argc); | 956 GenerateFastApiDirectCall(masm, optimization, argc, true); |
| 944 } | 957 } |
| 945 | 958 |
| 946 | 959 |
| 947 class CallInterceptorCompiler BASE_EMBEDDED { | 960 class CallInterceptorCompiler BASE_EMBEDDED { |
| 948 public: | 961 public: |
| 949 CallInterceptorCompiler(StubCompiler* stub_compiler, | 962 CallInterceptorCompiler(StubCompiler* stub_compiler, |
| 950 const ParameterCount& arguments, | 963 const ParameterCount& arguments, |
| 951 Register name, | 964 Register name, |
| 952 Code::ExtraICState extra_ic_state) | 965 Code::ExtraICState extra_ic_state) |
| 953 : stub_compiler_(stub_compiler), | 966 : stub_compiler_(stub_compiler), |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 } else { | 1060 } else { |
| 1048 // CheckPrototypes has a side effect of fetching a 'holder' | 1061 // CheckPrototypes has a side effect of fetching a 'holder' |
| 1049 // for API (object which is instanceof for the signature). It's | 1062 // for API (object which is instanceof for the signature). It's |
| 1050 // safe to omit it here, as if present, it should be fetched | 1063 // safe to omit it here, as if present, it should be fetched |
| 1051 // by the previous CheckPrototypes. | 1064 // by the previous CheckPrototypes. |
| 1052 ASSERT(depth2 == kInvalidProtoDepth); | 1065 ASSERT(depth2 == kInvalidProtoDepth); |
| 1053 } | 1066 } |
| 1054 | 1067 |
| 1055 // Invoke function. | 1068 // Invoke function. |
| 1056 if (can_do_fast_api_call) { | 1069 if (can_do_fast_api_call) { |
| 1057 GenerateFastApiDirectCall(masm, optimization, arguments_.immediate()); | 1070 GenerateFastApiDirectCall( |
| 1071 masm, optimization, arguments_.immediate(), false); |
| 1058 } else { | 1072 } else { |
| 1059 CallKind call_kind = CallICBase::Contextual::decode(extra_ic_state_) | 1073 CallKind call_kind = CallICBase::Contextual::decode(extra_ic_state_) |
| 1060 ? CALL_AS_FUNCTION | 1074 ? CALL_AS_FUNCTION |
| 1061 : CALL_AS_METHOD; | 1075 : CALL_AS_METHOD; |
| 1062 Handle<JSFunction> function = optimization.constant_function(); | 1076 Handle<JSFunction> function = optimization.constant_function(); |
| 1063 ParameterCount expected(function); | 1077 ParameterCount expected(function); |
| 1064 __ InvokeFunction(function, expected, arguments_, | 1078 __ InvokeFunction(function, expected, arguments_, |
| 1065 JUMP_FUNCTION, NullCallWrapper(), call_kind); | 1079 JUMP_FUNCTION, NullCallWrapper(), call_kind); |
| 1066 } | 1080 } |
| 1067 | 1081 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 Register StubCompiler::CheckPrototypes(Handle<JSObject> object, | 1188 Register StubCompiler::CheckPrototypes(Handle<JSObject> object, |
| 1175 Register object_reg, | 1189 Register object_reg, |
| 1176 Handle<JSObject> holder, | 1190 Handle<JSObject> holder, |
| 1177 Register holder_reg, | 1191 Register holder_reg, |
| 1178 Register scratch1, | 1192 Register scratch1, |
| 1179 Register scratch2, | 1193 Register scratch2, |
| 1180 Handle<Name> name, | 1194 Handle<Name> name, |
| 1181 int save_at_depth, | 1195 int save_at_depth, |
| 1182 Label* miss, | 1196 Label* miss, |
| 1183 PrototypeCheckType check) { | 1197 PrototypeCheckType check) { |
| 1198 const int kHolderIndex = kFastApiCallArguments + |
| 1199 FunctionCallbackArguments::kHolderIndex - 1; |
| 1184 // Make sure that the type feedback oracle harvests the receiver map. | 1200 // Make sure that the type feedback oracle harvests the receiver map. |
| 1185 // TODO(svenpanne) Remove this hack when all ICs are reworked. | 1201 // TODO(svenpanne) Remove this hack when all ICs are reworked. |
| 1186 __ li(scratch1, Operand(Handle<Map>(object->map()))); | 1202 __ li(scratch1, Operand(Handle<Map>(object->map()))); |
| 1187 | 1203 |
| 1188 Handle<JSObject> first = object; | 1204 Handle<JSObject> first = object; |
| 1189 // Make sure there's no overlap between holder and object registers. | 1205 // Make sure there's no overlap between holder and object registers. |
| 1190 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); | 1206 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |
| 1191 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) | 1207 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) |
| 1192 && !scratch2.is(scratch1)); | 1208 && !scratch2.is(scratch1)); |
| 1193 | 1209 |
| 1194 // Keep track of the current object in register reg. | 1210 // Keep track of the current object in register reg. |
| 1195 Register reg = object_reg; | 1211 Register reg = object_reg; |
| 1196 int depth = 0; | 1212 int depth = 0; |
| 1197 | 1213 |
| 1198 if (save_at_depth == depth) { | 1214 if (save_at_depth == depth) { |
| 1199 __ sw(reg, MemOperand(sp)); | 1215 __ sw(reg, MemOperand(sp, kHolderIndex * kPointerSize)); |
| 1200 } | 1216 } |
| 1201 | 1217 |
| 1202 // Check the maps in the prototype chain. | 1218 // Check the maps in the prototype chain. |
| 1203 // Traverse the prototype chain from the object and do map checks. | 1219 // Traverse the prototype chain from the object and do map checks. |
| 1204 Handle<JSObject> current = object; | 1220 Handle<JSObject> current = object; |
| 1205 while (!current.is_identical_to(holder)) { | 1221 while (!current.is_identical_to(holder)) { |
| 1206 ++depth; | 1222 ++depth; |
| 1207 | 1223 |
| 1208 // Only global objects and objects that do not require access | 1224 // Only global objects and objects that do not require access |
| 1209 // checks are allowed in stubs. | 1225 // checks are allowed in stubs. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 // The prototype is in new space; we cannot store a reference to it | 1263 // The prototype is in new space; we cannot store a reference to it |
| 1248 // in the code. Load it from the map. | 1264 // in the code. Load it from the map. |
| 1249 __ lw(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset)); | 1265 __ lw(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset)); |
| 1250 } else { | 1266 } else { |
| 1251 // The prototype is in old space; load it directly. | 1267 // The prototype is in old space; load it directly. |
| 1252 __ li(reg, Operand(prototype)); | 1268 __ li(reg, Operand(prototype)); |
| 1253 } | 1269 } |
| 1254 } | 1270 } |
| 1255 | 1271 |
| 1256 if (save_at_depth == depth) { | 1272 if (save_at_depth == depth) { |
| 1257 __ sw(reg, MemOperand(sp)); | 1273 __ sw(reg, MemOperand(sp, kHolderIndex * kPointerSize)); |
| 1258 } | 1274 } |
| 1259 | 1275 |
| 1260 // Go to the next object in the prototype chain. | 1276 // Go to the next object in the prototype chain. |
| 1261 current = prototype; | 1277 current = prototype; |
| 1262 } | 1278 } |
| 1263 | 1279 |
| 1264 // Log the check depth. | 1280 // Log the check depth. |
| 1265 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); | 1281 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
| 1266 | 1282 |
| 1267 if (!holder.is_identical_to(first) || check == CHECK_ALL_MAPS) { | 1283 if (!holder.is_identical_to(first) || check == CHECK_ALL_MAPS) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 const int kApiStackSpace = 1; | 1463 const int kApiStackSpace = 1; |
| 1448 FrameScope frame_scope(masm(), StackFrame::MANUAL); | 1464 FrameScope frame_scope(masm(), StackFrame::MANUAL); |
| 1449 __ EnterExitFrame(false, kApiStackSpace); | 1465 __ EnterExitFrame(false, kApiStackSpace); |
| 1450 | 1466 |
| 1451 // Create AccessorInfo instance on the stack above the exit frame with | 1467 // Create AccessorInfo instance on the stack above the exit frame with |
| 1452 // scratch2 (internal::Object** args_) as the data. | 1468 // scratch2 (internal::Object** args_) as the data. |
| 1453 __ sw(a2, MemOperand(sp, kPointerSize)); | 1469 __ sw(a2, MemOperand(sp, kPointerSize)); |
| 1454 // (second argument - a1) = AccessorInfo& | 1470 // (second argument - a1) = AccessorInfo& |
| 1455 __ Addu(a1, sp, kPointerSize); | 1471 __ Addu(a1, sp, kPointerSize); |
| 1456 | 1472 |
| 1457 const int kStackUnwindSpace = kFastApiCallArguments + 1; | 1473 const int kStackUnwindSpace = PropertyCallbackArguments::kArgsLength + 1; |
| 1458 Address getter_address = v8::ToCData<Address>(callback->getter()); | 1474 Address getter_address = v8::ToCData<Address>(callback->getter()); |
| 1459 ApiFunction fun(getter_address); | 1475 ApiFunction fun(getter_address); |
| 1460 ExternalReference::Type type = ExternalReference::DIRECT_GETTER_CALL; | 1476 ExternalReference::Type type = ExternalReference::DIRECT_GETTER_CALL; |
| 1461 ExternalReference ref = ExternalReference(&fun, type, isolate()); | 1477 ExternalReference ref = ExternalReference(&fun, type, isolate()); |
| 1462 | 1478 |
| 1463 Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback); | 1479 Address thunk_address = FUNCTION_ADDR(&InvokeAccessorGetterCallback); |
| 1464 ExternalReference::Type thunk_type = | 1480 ExternalReference::Type thunk_type = |
| 1465 ExternalReference::PROFILING_GETTER_CALL; | 1481 ExternalReference::PROFILING_GETTER_CALL; |
| 1466 ApiFunction thunk_fun(thunk_address); | 1482 ApiFunction thunk_fun(thunk_address); |
| 1467 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, | 1483 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, |
| 1468 isolate()); | 1484 isolate()); |
| 1469 __ CallApiFunctionAndReturn(ref, | 1485 __ CallApiFunctionAndReturn(ref, |
| 1470 getter_address, | 1486 getter_address, |
| 1471 thunk_ref, | 1487 thunk_ref, |
| 1472 a2, | 1488 a2, |
| 1473 kStackUnwindSpace, | 1489 kStackUnwindSpace, |
| 1474 6); | 1490 MemOperand(fp, 6 * kPointerSize), |
| 1491 NULL); |
| 1475 } | 1492 } |
| 1476 | 1493 |
| 1477 | 1494 |
| 1478 void BaseLoadStubCompiler::GenerateLoadInterceptor( | 1495 void BaseLoadStubCompiler::GenerateLoadInterceptor( |
| 1479 Register holder_reg, | 1496 Register holder_reg, |
| 1480 Handle<JSObject> object, | 1497 Handle<JSObject> object, |
| 1481 Handle<JSObject> interceptor_holder, | 1498 Handle<JSObject> interceptor_holder, |
| 1482 LookupResult* lookup, | 1499 LookupResult* lookup, |
| 1483 Handle<Name> name) { | 1500 Handle<Name> name) { |
| 1484 ASSERT(interceptor_holder->HasNamedInterceptor()); | 1501 ASSERT(interceptor_holder->HasNamedInterceptor()); |
| (...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2547 | 2564 |
| 2548 __ IncrementCounter(counters->call_const(), 1, a0, a3); | 2565 __ IncrementCounter(counters->call_const(), 1, a0, a3); |
| 2549 __ IncrementCounter(counters->call_const_fast_api(), 1, a0, a3); | 2566 __ IncrementCounter(counters->call_const_fast_api(), 1, a0, a3); |
| 2550 | 2567 |
| 2551 ReserveSpaceForFastApiCall(masm(), a0); | 2568 ReserveSpaceForFastApiCall(masm(), a0); |
| 2552 | 2569 |
| 2553 // Check that the maps haven't changed and find a Holder as a side effect. | 2570 // Check that the maps haven't changed and find a Holder as a side effect. |
| 2554 CheckPrototypes(Handle<JSObject>::cast(object), a1, holder, a0, a3, t0, name, | 2571 CheckPrototypes(Handle<JSObject>::cast(object), a1, holder, a0, a3, t0, name, |
| 2555 depth, &miss); | 2572 depth, &miss); |
| 2556 | 2573 |
| 2557 GenerateFastApiDirectCall(masm(), optimization, argc); | 2574 GenerateFastApiDirectCall(masm(), optimization, argc, false); |
| 2558 | 2575 |
| 2559 __ bind(&miss); | 2576 __ bind(&miss); |
| 2560 FreeSpaceForFastApiCall(masm()); | 2577 FreeSpaceForFastApiCall(masm()); |
| 2561 | 2578 |
| 2562 __ bind(&miss_before_stack_reserved); | 2579 __ bind(&miss_before_stack_reserved); |
| 2563 GenerateMissBranch(); | 2580 GenerateMissBranch(); |
| 2564 | 2581 |
| 2565 // Return the generated code. | 2582 // Return the generated code. |
| 2566 return GetCode(function); | 2583 return GetCode(function); |
| 2567 } | 2584 } |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3190 // ----------------------------------- | 3207 // ----------------------------------- |
| 3191 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3208 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
| 3192 } | 3209 } |
| 3193 | 3210 |
| 3194 | 3211 |
| 3195 #undef __ | 3212 #undef __ |
| 3196 | 3213 |
| 3197 } } // namespace v8::internal | 3214 } } // namespace v8::internal |
| 3198 | 3215 |
| 3199 #endif // V8_TARGET_ARCH_MIPS | 3216 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |