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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 __ mov(scratch2(), esp); | 1379 __ mov(scratch2(), esp); |
1380 ASSERT(!scratch2().is(reg)); | 1380 ASSERT(!scratch2().is(reg)); |
1381 __ push(reg); // holder | 1381 __ push(reg); // holder |
1382 // Push data from ExecutableAccessorInfo. | 1382 // Push data from ExecutableAccessorInfo. |
1383 if (isolate()->heap()->InNewSpace(callback->data())) { | 1383 if (isolate()->heap()->InNewSpace(callback->data())) { |
1384 __ mov(scratch1(), Immediate(callback)); | 1384 __ mov(scratch1(), Immediate(callback)); |
1385 __ push(FieldOperand(scratch1(), ExecutableAccessorInfo::kDataOffset)); | 1385 __ push(FieldOperand(scratch1(), ExecutableAccessorInfo::kDataOffset)); |
1386 } else { | 1386 } else { |
1387 __ push(Immediate(Handle<Object>(callback->data(), isolate()))); | 1387 __ push(Immediate(Handle<Object>(callback->data(), isolate()))); |
1388 } | 1388 } |
| 1389 __ push(Immediate(isolate()->factory()->undefined_value())); // ReturnValue |
1389 __ push(Immediate(reinterpret_cast<int>(isolate()))); | 1390 __ push(Immediate(reinterpret_cast<int>(isolate()))); |
1390 __ push(Immediate(isolate()->factory()->undefined_value())); // ReturnValue | |
1391 | 1391 |
1392 // Save a pointer to where we pushed the arguments pointer. This will be | 1392 // Save a pointer to where we pushed the arguments pointer. This will be |
1393 // passed as the const ExecutableAccessorInfo& to the C++ callback. | 1393 // passed as the const ExecutableAccessorInfo& to the C++ callback. |
1394 __ push(scratch2()); | 1394 __ push(scratch2()); |
1395 | 1395 |
1396 __ push(name()); // name | 1396 __ push(name()); // name |
1397 __ mov(ebx, esp); // esp points to reference to name (handler). | 1397 __ mov(ebx, esp); // esp points to reference to name (handler). |
1398 | 1398 |
1399 __ push(scratch3()); // Restore return address. | 1399 __ push(scratch3()); // Restore return address. |
1400 | 1400 |
(...skipping 12 matching lines...) Expand all Loading... |
1413 __ mov(ApiParameterOperand(1, returns_handle), ebx); // arguments pointer. | 1413 __ mov(ApiParameterOperand(1, returns_handle), ebx); // arguments pointer. |
1414 | 1414 |
1415 // Emitting a stub call may try to allocate (if the code is not | 1415 // Emitting a stub call may try to allocate (if the code is not |
1416 // already generated). Do not allow the assembler to perform a | 1416 // already generated). Do not allow the assembler to perform a |
1417 // garbage collection but instead return the allocation failure | 1417 // garbage collection but instead return the allocation failure |
1418 // object. | 1418 // object. |
1419 | 1419 |
1420 __ CallApiFunctionAndReturn(getter_address, | 1420 __ CallApiFunctionAndReturn(getter_address, |
1421 kStackSpace, | 1421 kStackSpace, |
1422 returns_handle, | 1422 returns_handle, |
1423 4); | 1423 5); |
1424 } | 1424 } |
1425 | 1425 |
1426 | 1426 |
1427 void BaseLoadStubCompiler::GenerateLoadConstant(Handle<JSFunction> value) { | 1427 void BaseLoadStubCompiler::GenerateLoadConstant(Handle<JSFunction> value) { |
1428 // Return the constant value. | 1428 // Return the constant value. |
1429 __ LoadHeapObject(eax, value); | 1429 __ LoadHeapObject(eax, value); |
1430 __ ret(0); | 1430 __ ret(0); |
1431 } | 1431 } |
1432 | 1432 |
1433 | 1433 |
(...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3877 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3877 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3878 } | 3878 } |
3879 } | 3879 } |
3880 | 3880 |
3881 | 3881 |
3882 #undef __ | 3882 #undef __ |
3883 | 3883 |
3884 } } // namespace v8::internal | 3884 } } // namespace v8::internal |
3885 | 3885 |
3886 #endif // V8_TARGET_ARCH_IA32 | 3886 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |