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

Side by Side Diff: src/mips/builtins-mips.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/mips/assembler-mips.h ('k') | src/mips/code-stubs-mips.cc » ('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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 __ AllocateInNewSpace( 888 __ AllocateInNewSpace(
889 a0, 889 a0,
890 t5, 890 t5,
891 t6, 891 t6,
892 a2, 892 a2,
893 &undo_allocation, 893 &undo_allocation,
894 static_cast<AllocationFlags>(RESULT_CONTAINS_TOP | SIZE_IN_WORDS)); 894 static_cast<AllocationFlags>(RESULT_CONTAINS_TOP | SIZE_IN_WORDS));
895 895
896 // Initialize the FixedArray. 896 // Initialize the FixedArray.
897 // a1: constructor 897 // a1: constructor
898 // a3: number of elements in properties array (un-tagged) 898 // a3: number of elements in properties array (untagged)
899 // t4: JSObject 899 // t4: JSObject
900 // t5: start of next object 900 // t5: start of next object
901 __ LoadRoot(t6, Heap::kFixedArrayMapRootIndex); 901 __ LoadRoot(t6, Heap::kFixedArrayMapRootIndex);
902 __ mov(a2, t5); 902 __ mov(a2, t5);
903 __ sw(t6, MemOperand(a2, JSObject::kMapOffset)); 903 __ sw(t6, MemOperand(a2, JSObject::kMapOffset));
904 __ sll(a0, a3, kSmiTagSize); 904 __ sll(a0, a3, kSmiTagSize);
905 __ sw(a0, MemOperand(a2, FixedArray::kLengthOffset)); 905 __ sw(a0, MemOperand(a2, FixedArray::kLengthOffset));
906 __ Addu(a2, a2, Operand(2 * kPointerSize)); 906 __ Addu(a2, a2, Operand(2 * kPointerSize));
907 907
908 ASSERT_EQ(0 * kPointerSize, JSObject::kMapOffset); 908 ASSERT_EQ(0 * kPointerSize, JSObject::kMapOffset);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } 1092 }
1093 1093
1094 1094
1095 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, 1095 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
1096 bool is_construct) { 1096 bool is_construct) {
1097 // Called from JSEntryStub::GenerateBody 1097 // Called from JSEntryStub::GenerateBody
1098 1098
1099 // ----------- S t a t e ------------- 1099 // ----------- S t a t e -------------
1100 // -- a0: code entry 1100 // -- a0: code entry
1101 // -- a1: function 1101 // -- a1: function
1102 // -- a2: reveiver_pointer 1102 // -- a2: receiver_pointer
1103 // -- a3: argc 1103 // -- a3: argc
1104 // -- s0: argv 1104 // -- s0: argv
1105 // ----------------------------------- 1105 // -----------------------------------
1106 1106
1107 // Clear the context before we push it when entering the JS frame. 1107 // Clear the context before we push it when entering the JS frame.
1108 __ mov(cp, zero_reg); 1108 __ mov(cp, zero_reg);
1109 1109
1110 // Enter an internal frame. 1110 // Enter an internal frame.
1111 { 1111 {
1112 FrameScope scope(masm, StackFrame::INTERNAL); 1112 FrameScope scope(masm, StackFrame::INTERNAL);
1113 1113
1114 // Set up the context from the function argument. 1114 // Set up the context from the function argument.
1115 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); 1115 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
1116 1116
1117 __ InitializeRootRegister(); 1117 __ InitializeRootRegister();
1118 1118
1119 // Push the function and the receiver onto the stack. 1119 // Push the function and the receiver onto the stack.
1120 __ Push(a1, a2); 1120 __ Push(a1, a2);
1121 1121
1122 // Copy arguments to the stack in a loop. 1122 // Copy arguments to the stack in a loop.
1123 // a3: argc 1123 // a3: argc
1124 // s0: argv, ie points to first arg 1124 // s0: argv, i.e. points to first arg
1125 Label loop, entry; 1125 Label loop, entry;
1126 __ sll(t0, a3, kPointerSizeLog2); 1126 __ sll(t0, a3, kPointerSizeLog2);
1127 __ addu(t2, s0, t0); 1127 __ addu(t2, s0, t0);
1128 __ b(&entry); 1128 __ b(&entry);
1129 __ nop(); // Branch delay slot nop. 1129 __ nop(); // Branch delay slot nop.
1130 // t2 points past last arg. 1130 // t2 points past last arg.
1131 __ bind(&loop); 1131 __ bind(&loop);
1132 __ lw(t0, MemOperand(s0)); // Read next parameter. 1132 __ lw(t0, MemOperand(s0)); // Read next parameter.
1133 __ addiu(s0, s0, kPointerSize); 1133 __ addiu(s0, s0, kPointerSize);
1134 __ lw(t0, MemOperand(t0)); // Dereference handle. 1134 __ lw(t0, MemOperand(t0)); // Dereference handle.
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 __ bind(&dont_adapt_arguments); 1811 __ bind(&dont_adapt_arguments);
1812 __ Jump(a3); 1812 __ Jump(a3);
1813 } 1813 }
1814 1814
1815 1815
1816 #undef __ 1816 #undef __
1817 1817
1818 } } // namespace v8::internal 1818 } } // namespace v8::internal
1819 1819
1820 #endif // V8_TARGET_ARCH_MIPS 1820 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698