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

Side by Side Diff: src/arm/builtins-arm.cc

Issue 88043002: Out-of-line constant pool on Arm: Stage 3 - Set Constant Pool Pointer on Function Entry (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Revert inadvertent flag change Created 7 years 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 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 // r1 - isolate 836 // r1 - isolate
837 FrameScope scope(masm, StackFrame::MANUAL); 837 FrameScope scope(masm, StackFrame::MANUAL);
838 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); 838 __ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit());
839 __ PrepareCallCFunction(1, 0, r2); 839 __ PrepareCallCFunction(1, 0, r2);
840 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate()))); 840 __ mov(r1, Operand(ExternalReference::isolate_address(masm->isolate())));
841 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function( 841 __ CallCFunction(ExternalReference::get_mark_code_as_executed_function(
842 masm->isolate()), 2); 842 masm->isolate()), 2);
843 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); 843 __ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit());
844 844
845 // Perform prologue operations usually performed by the young code stub. 845 // Perform prologue operations usually performed by the young code stub.
846 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); 846 __ PushFixedFrame(r1);
847 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 847 __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
848 848
849 // Jump to point after the code-age stub. 849 // Jump to point after the code-age stub.
850 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize)); 850 __ add(r0, r0, Operand(kNoCodeAgeSequenceLength * Assembler::kInstrSize));
851 __ mov(pc, r0); 851 __ mov(pc, r0);
852 } 852 }
853 853
854 854
855 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { 855 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) {
856 GenerateMakeCodeYoungAgainCommon(masm); 856 GenerateMakeCodeYoungAgainCommon(masm);
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 // Tear down the internal frame and remove function, receiver and args. 1346 // Tear down the internal frame and remove function, receiver and args.
1347 } 1347 }
1348 __ add(sp, sp, Operand(3 * kPointerSize)); 1348 __ add(sp, sp, Operand(3 * kPointerSize));
1349 __ Jump(lr); 1349 __ Jump(lr);
1350 } 1350 }
1351 1351
1352 1352
1353 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { 1353 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
1354 __ SmiTag(r0); 1354 __ SmiTag(r0);
1355 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); 1355 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
1356 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit()); 1356 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() |
1357 (FLAG_enable_ool_constant_pool ? pp.bit() : 0) |
1358 fp.bit() | lr.bit());
1357 __ add(fp, sp, 1359 __ add(fp, sp,
1358 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); 1360 Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize));
ulan 2013/12/18 15:06:56 This is from another change: I wonder if usage of
rmcilroy 2013/12/19 11:08:25 So my thought process was that each stack frame al
ulan 2013/12/19 12:54:41 I see. Yes, this is reasonable.
1359 } 1361 }
1360 1362
1361 1363
1362 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { 1364 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) {
1363 // ----------- S t a t e ------------- 1365 // ----------- S t a t e -------------
1364 // -- r0 : result being passed through 1366 // -- r0 : result being passed through
1365 // ----------------------------------- 1367 // -----------------------------------
1366 // Get the number of arguments passed (as a smi), tear down the frame and 1368 // Get the number of arguments passed (as a smi), tear down the frame and
1367 // then tear down the parameters. 1369 // then tear down the parameters.
1368 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp + 1370 __ ldr(r1, MemOperand(fp, -(StandardFrameConstants::kFixedFrameSizeFromFp +
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 __ bind(&dont_adapt_arguments); 1484 __ bind(&dont_adapt_arguments);
1483 __ Jump(r3); 1485 __ Jump(r3);
1484 } 1486 }
1485 1487
1486 1488
1487 #undef __ 1489 #undef __
1488 1490
1489 } } // namespace v8::internal 1491 } } // namespace v8::internal
1490 1492
1491 #endif // V8_TARGET_ARCH_ARM 1493 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/code-stubs-arm.cc » ('j') | src/arm/full-codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698