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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 2850043: Specialize GenericUnaryStub so that it knows whether it needs to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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/arm/macro-assembler-arm.h ('k') | src/codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698