OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 Call(stub->GetCode(), RelocInfo::CODE_TARGET, cond); | 1365 Call(stub->GetCode(), RelocInfo::CODE_TARGET, cond); |
1366 } | 1366 } |
1367 | 1367 |
1368 | 1368 |
1369 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) { | 1369 void MacroAssembler::TailCallStub(CodeStub* stub, Condition cond) { |
1370 ASSERT(allow_stub_calls()); // stub calls are not allowed in some stubs | 1370 ASSERT(allow_stub_calls()); // stub calls are not allowed in some stubs |
1371 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); | 1371 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); |
1372 } | 1372 } |
1373 | 1373 |
1374 | 1374 |
1375 void MacroAssembler::StubReturn(int argc) { | 1375 void MacroAssembler::StubReturn(int argc, Condition cond) { |
1376 ASSERT(argc >= 1 && generating_stub()); | 1376 ASSERT(argc >= 1 && generating_stub()); |
1377 if (argc > 1) { | 1377 if (argc > 1) { |
1378 add(sp, sp, Operand((argc - 1) * kPointerSize)); | 1378 add(sp, sp, Operand((argc - 1) * kPointerSize), LeaveCC, cond); |
1379 } | 1379 } |
1380 Ret(); | 1380 Ret(cond); |
1381 } | 1381 } |
1382 | 1382 |
1383 | 1383 |
1384 void MacroAssembler::IllegalOperation(int num_arguments) { | 1384 void MacroAssembler::IllegalOperation(int num_arguments) { |
1385 if (num_arguments > 0) { | 1385 if (num_arguments > 0) { |
1386 add(sp, sp, Operand(num_arguments * kPointerSize)); | 1386 add(sp, sp, Operand(num_arguments * kPointerSize)); |
1387 } | 1387 } |
1388 LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 1388 LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
1389 } | 1389 } |
1390 | 1390 |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 | 1934 |
1935 void CodePatcher::Emit(Address addr) { | 1935 void CodePatcher::Emit(Address addr) { |
1936 masm()->emit(reinterpret_cast<Instr>(addr)); | 1936 masm()->emit(reinterpret_cast<Instr>(addr)); |
1937 } | 1937 } |
1938 #endif // ENABLE_DEBUGGER_SUPPORT | 1938 #endif // ENABLE_DEBUGGER_SUPPORT |
1939 | 1939 |
1940 | 1940 |
1941 } } // namespace v8::internal | 1941 } } // namespace v8::internal |
1942 | 1942 |
1943 #endif // V8_TARGET_ARCH_ARM | 1943 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |