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 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 if (heap()->InNewSpace(callback->data())) { | 1431 if (heap()->InNewSpace(callback->data())) { |
1432 __ li(scratch3(), callback); | 1432 __ li(scratch3(), callback); |
1433 __ lw(scratch3(), FieldMemOperand(scratch3(), | 1433 __ lw(scratch3(), FieldMemOperand(scratch3(), |
1434 ExecutableAccessorInfo::kDataOffset)); | 1434 ExecutableAccessorInfo::kDataOffset)); |
1435 } else { | 1435 } else { |
1436 __ li(scratch3(), Handle<Object>(callback->data(), isolate())); | 1436 __ li(scratch3(), Handle<Object>(callback->data(), isolate())); |
1437 } | 1437 } |
1438 __ Subu(sp, sp, 5 * kPointerSize); | 1438 __ Subu(sp, sp, 5 * kPointerSize); |
1439 __ sw(reg, MemOperand(sp, 4 * kPointerSize)); | 1439 __ sw(reg, MemOperand(sp, 4 * kPointerSize)); |
1440 __ sw(scratch3(), MemOperand(sp, 3 * kPointerSize)); | 1440 __ sw(scratch3(), MemOperand(sp, 3 * kPointerSize)); |
1441 __ li(scratch3(), | 1441 __ LoadRoot(scratch3(), Heap::kUndefinedValueRootIndex); |
| 1442 __ li(scratch4(), |
1442 Operand(ExternalReference::isolate_address(isolate()))); | 1443 Operand(ExternalReference::isolate_address(isolate()))); |
1443 __ LoadRoot(scratch4(), Heap::kUndefinedValueRootIndex); | |
1444 __ sw(scratch3(), MemOperand(sp, 2 * kPointerSize)); | 1444 __ sw(scratch3(), MemOperand(sp, 2 * kPointerSize)); |
1445 __ sw(scratch4(), MemOperand(sp, 1 * kPointerSize)); | 1445 __ sw(scratch4(), MemOperand(sp, 1 * kPointerSize)); |
1446 __ sw(name(), MemOperand(sp, 0 * kPointerSize)); | 1446 __ sw(name(), MemOperand(sp, 0 * kPointerSize)); |
1447 | 1447 |
1448 Address getter_address = v8::ToCData<Address>(callback->getter()); | 1448 Address getter_address = v8::ToCData<Address>(callback->getter()); |
1449 bool returns_handle = | 1449 bool returns_handle = |
1450 !CallbackTable::ReturnsVoid(isolate(), getter_address); | 1450 !CallbackTable::ReturnsVoid(isolate(), getter_address); |
1451 | 1451 |
1452 Register first_arg = returns_handle ? a1 : a0; | 1452 Register first_arg = returns_handle ? a1 : a0; |
1453 Register second_arg = returns_handle ? a2 : a1; | 1453 Register second_arg = returns_handle ? a2 : a1; |
(...skipping 20 matching lines...) Expand all Loading... |
1474 ApiFunction fun(getter_address); | 1474 ApiFunction fun(getter_address); |
1475 ExternalReference::Type type = | 1475 ExternalReference::Type type = |
1476 returns_handle ? | 1476 returns_handle ? |
1477 ExternalReference::DIRECT_GETTER_CALL : | 1477 ExternalReference::DIRECT_GETTER_CALL : |
1478 ExternalReference::DIRECT_GETTER_CALL_NEW; | 1478 ExternalReference::DIRECT_GETTER_CALL_NEW; |
1479 | 1479 |
1480 ExternalReference ref = ExternalReference(&fun, type, isolate()); | 1480 ExternalReference ref = ExternalReference(&fun, type, isolate()); |
1481 __ CallApiFunctionAndReturn(ref, | 1481 __ CallApiFunctionAndReturn(ref, |
1482 kStackUnwindSpace, | 1482 kStackUnwindSpace, |
1483 returns_handle, | 1483 returns_handle, |
1484 3); | 1484 4); |
1485 } | 1485 } |
1486 | 1486 |
1487 | 1487 |
1488 void BaseLoadStubCompiler::GenerateLoadInterceptor( | 1488 void BaseLoadStubCompiler::GenerateLoadInterceptor( |
1489 Register holder_reg, | 1489 Register holder_reg, |
1490 Handle<JSObject> object, | 1490 Handle<JSObject> object, |
1491 Handle<JSObject> interceptor_holder, | 1491 Handle<JSObject> interceptor_holder, |
1492 LookupResult* lookup, | 1492 LookupResult* lookup, |
1493 Handle<Name> name) { | 1493 Handle<Name> name) { |
1494 ASSERT(interceptor_holder->HasNamedInterceptor()); | 1494 ASSERT(interceptor_holder->HasNamedInterceptor()); |
(...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3903 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3903 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3904 } | 3904 } |
3905 } | 3905 } |
3906 | 3906 |
3907 | 3907 |
3908 #undef __ | 3908 #undef __ |
3909 | 3909 |
3910 } } // namespace v8::internal | 3910 } } // namespace v8::internal |
3911 | 3911 |
3912 #endif // V8_TARGET_ARCH_MIPS | 3912 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |