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

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

Issue 174517: * Make stack/preemption guard faster on ARM by putting stack... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 // Non-instance prototype: Fetch prototype from constructor field 818 // Non-instance prototype: Fetch prototype from constructor field
819 // in initial map. 819 // in initial map.
820 bind(&non_instance); 820 bind(&non_instance);
821 ldr(result, FieldMemOperand(result, Map::kConstructorOffset)); 821 ldr(result, FieldMemOperand(result, Map::kConstructorOffset));
822 822
823 // All done. 823 // All done.
824 bind(&done); 824 bind(&done);
825 } 825 }
826 826
827 827
828 void MacroAssembler::CallStub(CodeStub* stub) { 828 void MacroAssembler::CallStub(CodeStub* stub, Condition cond) {
829 ASSERT(allow_stub_calls()); // stub calls are not allowed in some stubs 829 ASSERT(allow_stub_calls()); // stub calls are not allowed in some stubs
830 Call(stub->GetCode(), RelocInfo::CODE_TARGET); 830 Call(stub->GetCode(), RelocInfo::CODE_TARGET, cond);
831 } 831 }
832 832
833 833
834 void MacroAssembler::StubReturn(int argc) { 834 void MacroAssembler::StubReturn(int argc) {
835 ASSERT(argc >= 1 && generating_stub()); 835 ASSERT(argc >= 1 && generating_stub());
836 if (argc > 1) 836 if (argc > 1)
837 add(sp, sp, Operand((argc - 1) * kPointerSize)); 837 add(sp, sp, Operand((argc - 1) * kPointerSize));
838 Ret(); 838 Ret();
839 } 839 }
840 840
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 #endif 1016 #endif
1017 mov(r0, Operand(p0)); 1017 mov(r0, Operand(p0));
1018 push(r0); 1018 push(r0);
1019 mov(r0, Operand(Smi::FromInt(p1 - p0))); 1019 mov(r0, Operand(Smi::FromInt(p1 - p0)));
1020 push(r0); 1020 push(r0);
1021 CallRuntime(Runtime::kAbort, 2); 1021 CallRuntime(Runtime::kAbort, 2);
1022 // will not return here 1022 // will not return here
1023 } 1023 }
1024 1024
1025 } } // namespace v8::internal 1025 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm/virtual-frame-arm.cc » ('j') | src/execution.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698