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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 9231009: More spelling changes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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.cc ('k') | src/array.js » ('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 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 static void FreeSpaceForFastApiCall(MacroAssembler* masm) { 555 static void FreeSpaceForFastApiCall(MacroAssembler* masm) {
556 __ Drop(kFastApiCallArguments); 556 __ Drop(kFastApiCallArguments);
557 } 557 }
558 558
559 559
560 static void GenerateFastApiDirectCall(MacroAssembler* masm, 560 static void GenerateFastApiDirectCall(MacroAssembler* masm,
561 const CallOptimization& optimization, 561 const CallOptimization& optimization,
562 int argc) { 562 int argc) {
563 // ----------- S t a t e ------------- 563 // ----------- S t a t e -------------
564 // -- sp[0] : holder (set by CheckPrototypes) 564 // -- sp[0] : holder (set by CheckPrototypes)
565 // -- sp[4] : callee js function 565 // -- sp[4] : callee JS function
566 // -- sp[8] : call data 566 // -- sp[8] : call data
567 // -- sp[12] : last js argument 567 // -- sp[12] : last JS argument
568 // -- ... 568 // -- ...
569 // -- sp[(argc + 3) * 4] : first js argument 569 // -- sp[(argc + 3) * 4] : first JS argument
570 // -- sp[(argc + 4) * 4] : receiver 570 // -- sp[(argc + 4) * 4] : receiver
571 // ----------------------------------- 571 // -----------------------------------
572 // Get the function and setup the context. 572 // Get the function and setup the context.
573 Handle<JSFunction> function = optimization.constant_function(); 573 Handle<JSFunction> function = optimization.constant_function();
574 __ LoadHeapObject(r5, function); 574 __ LoadHeapObject(r5, function);
575 __ ldr(cp, FieldMemOperand(r5, JSFunction::kContextOffset)); 575 __ ldr(cp, FieldMemOperand(r5, JSFunction::kContextOffset));
576 576
577 // Pass the additional arguments FastHandleApiCall expects. 577 // Pass the additional arguments FastHandleApiCall expects.
578 Handle<CallHandlerInfo> api_call_info = optimization.api_call_info(); 578 Handle<CallHandlerInfo> api_call_info = optimization.api_call_info();
579 Handle<Object> call_data(api_call_info->data()); 579 Handle<Object> call_data(api_call_info->data());
580 if (masm->isolate()->heap()->InNewSpace(*call_data)) { 580 if (masm->isolate()->heap()->InNewSpace(*call_data)) {
581 __ Move(r0, api_call_info); 581 __ Move(r0, api_call_info);
582 __ ldr(r6, FieldMemOperand(r0, CallHandlerInfo::kDataOffset)); 582 __ ldr(r6, FieldMemOperand(r0, CallHandlerInfo::kDataOffset));
583 } else { 583 } else {
584 __ Move(r6, call_data); 584 __ Move(r6, call_data);
585 } 585 }
586 // Store js function and call data. 586 // Store JS function and call data.
587 __ stm(ib, sp, r5.bit() | r6.bit()); 587 __ stm(ib, sp, r5.bit() | r6.bit());
588 588
589 // r2 points to call data as expected by Arguments 589 // r2 points to call data as expected by Arguments
590 // (refer to layout above). 590 // (refer to layout above).
591 __ add(r2, sp, Operand(2 * kPointerSize)); 591 __ add(r2, sp, Operand(2 * kPointerSize));
592 592
593 const int kApiStackSpace = 4; 593 const int kApiStackSpace = 4;
594 594
595 FrameScope frame_scope(masm, StackFrame::MANUAL); 595 FrameScope frame_scope(masm, StackFrame::MANUAL);
596 __ EnterExitFrame(false, kApiStackSpace); 596 __ EnterExitFrame(false, kApiStackSpace);
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1976 // with ldrd and move it to the fpu. It also spares a sub instruction for 1976 // with ldrd and move it to the fpu. It also spares a sub instruction for
1977 // updating the HeapNumber value address, as vldr expects a multiple 1977 // updating the HeapNumber value address, as vldr expects a multiple
1978 // of 4 offset. 1978 // of 4 offset.
1979 __ Ldrd(r4, r5, FieldMemOperand(r0, HeapNumber::kValueOffset)); 1979 __ Ldrd(r4, r5, FieldMemOperand(r0, HeapNumber::kValueOffset));
1980 __ vmov(d1, r4, r5); 1980 __ vmov(d1, r4, r5);
1981 1981
1982 // Backup FPSCR. 1982 // Backup FPSCR.
1983 __ vmrs(r3); 1983 __ vmrs(r3);
1984 // Set custom FPCSR: 1984 // Set custom FPCSR:
1985 // - Set rounding mode to "Round towards Minus Infinity" 1985 // - Set rounding mode to "Round towards Minus Infinity"
1986 // (ie bits [23:22] = 0b10). 1986 // (i.e. bits [23:22] = 0b10).
1987 // - Clear vfp cumulative exception flags (bits [3:0]). 1987 // - Clear vfp cumulative exception flags (bits [3:0]).
1988 // - Make sure Flush-to-zero mode control bit is unset (bit 22). 1988 // - Make sure Flush-to-zero mode control bit is unset (bit 22).
1989 __ bic(r9, r3, 1989 __ bic(r9, r3,
1990 Operand(kVFPExceptionMask | kVFPRoundingModeMask | kVFPFlushToZeroMask)); 1990 Operand(kVFPExceptionMask | kVFPRoundingModeMask | kVFPFlushToZeroMask));
1991 __ orr(r9, r9, Operand(kRoundToMinusInf)); 1991 __ orr(r9, r9, Operand(kRoundToMinusInf));
1992 __ vmsr(r9); 1992 __ vmsr(r9);
1993 1993
1994 // Convert the argument to an integer. 1994 // Convert the argument to an integer.
1995 __ vcvt_s32_f64(s0, d1, kFPSCRRounding); 1995 __ vcvt_s32_f64(s0, d1, kFPSCRRounding);
1996 1996
(...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after
4212 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4212 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4213 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4213 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4214 } 4214 }
4215 4215
4216 4216
4217 #undef __ 4217 #undef __
4218 4218
4219 } } // namespace v8::internal 4219 } } // namespace v8::internal
4220 4220
4221 #endif // V8_TARGET_ARCH_ARM 4221 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698