Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 15606002: MIPS: fix arm simulator after 14725 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 __ li(t0, Operand(argc)); 928 __ li(t0, Operand(argc));
929 __ sw(t0, MemOperand(a1, 2 * kPointerSize)); 929 __ sw(t0, MemOperand(a1, 2 * kPointerSize));
930 // v8::Arguments::is_construct_call = 0 930 // v8::Arguments::is_construct_call = 0
931 __ sw(zero_reg, MemOperand(a1, 3 * kPointerSize)); 931 __ sw(zero_reg, MemOperand(a1, 3 * kPointerSize));
932 932
933 const int kStackUnwindSpace = argc + kFastApiCallArguments + 1; 933 const int kStackUnwindSpace = argc + kFastApiCallArguments + 1;
934 Address function_address = v8::ToCData<Address>(api_call_info->callback()); 934 Address function_address = v8::ToCData<Address>(api_call_info->callback());
935 bool returns_handle = 935 bool returns_handle =
936 !CallbackTable::ReturnsVoid(masm->isolate(), function_address); 936 !CallbackTable::ReturnsVoid(masm->isolate(), function_address);
937 ApiFunction fun(function_address); 937 ApiFunction fun(function_address);
938 ExternalReference::Type type =
939 returns_handle ?
940 ExternalReference::DIRECT_API_CALL :
941 ExternalReference::DIRECT_API_CALL_NEW;
938 ExternalReference ref = 942 ExternalReference ref =
939 ExternalReference(&fun, 943 ExternalReference(&fun,
940 ExternalReference::DIRECT_API_CALL, 944 type,
941 masm->isolate()); 945 masm->isolate());
942 AllowExternalCallThatCantCauseGC scope(masm); 946 AllowExternalCallThatCantCauseGC scope(masm);
943 __ CallApiFunctionAndReturn(ref, 947 __ CallApiFunctionAndReturn(ref,
944 kStackUnwindSpace, 948 kStackUnwindSpace,
945 returns_handle, 949 returns_handle,
946 kFastApiCallArguments + 1); 950 kFastApiCallArguments + 1);
947 } 951 }
948 952
949 class CallInterceptorCompiler BASE_EMBEDDED { 953 class CallInterceptorCompiler BASE_EMBEDDED {
950 public: 954 public:
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 // scratch2 (internal::Object** args_) as the data. 1447 // scratch2 (internal::Object** args_) as the data.
1444 __ sw(a2, MemOperand(sp, kPointerSize)); 1448 __ sw(a2, MemOperand(sp, kPointerSize));
1445 // a2 (second argument - see note above) = AccessorInfo& 1449 // a2 (second argument - see note above) = AccessorInfo&
1446 __ Addu(a2, sp, kPointerSize); 1450 __ Addu(a2, sp, kPointerSize);
1447 1451
1448 const int kStackUnwindSpace = kFastApiCallArguments + 1; 1452 const int kStackUnwindSpace = kFastApiCallArguments + 1;
1449 Address getter_address = v8::ToCData<Address>(callback->getter()); 1453 Address getter_address = v8::ToCData<Address>(callback->getter());
1450 bool returns_handle = 1454 bool returns_handle =
1451 !CallbackTable::ReturnsVoid(isolate(), getter_address); 1455 !CallbackTable::ReturnsVoid(isolate(), getter_address);
1452 ApiFunction fun(getter_address); 1456 ApiFunction fun(getter_address);
1453 ExternalReference ref = ExternalReference( 1457 ExternalReference::Type type =
1454 &fun, ExternalReference::DIRECT_GETTER_CALL, isolate()); 1458 returns_handle ?
1459 ExternalReference::DIRECT_GETTER_CALL :
1460 ExternalReference::DIRECT_GETTER_CALL_NEW;
1461
1462 ExternalReference ref = ExternalReference(&fun, type, isolate());
1455 __ CallApiFunctionAndReturn(ref, 1463 __ CallApiFunctionAndReturn(ref,
1456 kStackUnwindSpace, 1464 kStackUnwindSpace,
1457 returns_handle, 1465 returns_handle,
1458 3); 1466 3);
1459 } 1467 }
1460 1468
1461 1469
1462 void BaseLoadStubCompiler::GenerateLoadInterceptor( 1470 void BaseLoadStubCompiler::GenerateLoadInterceptor(
1463 Register holder_reg, 1471 Register holder_reg,
1464 Handle<JSObject> object, 1472 Handle<JSObject> object,
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3877 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3885 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3878 } 3886 }
3879 } 3887 }
3880 3888
3881 3889
3882 #undef __ 3890 #undef __
3883 3891
3884 } } // namespace v8::internal 3892 } } // namespace v8::internal
3885 3893
3886 #endif // V8_TARGET_ARCH_MIPS 3894 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698