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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/builtins-mips.cc ('k') | src/mips/codegen-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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 73
74 void FastCloneShallowArrayStub::InitializeInterfaceDescriptor( 74 void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
75 Isolate* isolate, 75 Isolate* isolate,
76 CodeStubInterfaceDescriptor* descriptor) { 76 CodeStubInterfaceDescriptor* descriptor) {
77 static Register registers[] = { a3, a2, a1 }; 77 static Register registers[] = { a3, a2, a1 };
78 descriptor->register_param_count_ = 3; 78 descriptor->register_param_count_ = 3;
79 descriptor->register_params_ = registers; 79 descriptor->register_params_ = registers;
80 descriptor->deoptimization_handler_ = 80 descriptor->deoptimization_handler_ =
81 Runtime::FunctionForId(Runtime::kCreateArrayLiteralShallow)->entry; 81 Runtime::FunctionForId(Runtime::kCreateArrayLiteral)->entry;
82 } 82 }
83 83
84 84
85 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor( 85 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor(
86 Isolate* isolate, 86 Isolate* isolate,
87 CodeStubInterfaceDescriptor* descriptor) { 87 CodeStubInterfaceDescriptor* descriptor) {
88 static Register registers[] = { a3, a2, a1, a0 }; 88 static Register registers[] = { a3, a2, a1, a0 };
89 descriptor->register_param_count_ = 4; 89 descriptor->register_param_count_ = 4;
90 descriptor->register_params_ = registers; 90 descriptor->register_params_ = registers;
91 descriptor->deoptimization_handler_ = 91 descriptor->deoptimization_handler_ =
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 Isolate* isolate, 284 Isolate* isolate,
285 CodeStubInterfaceDescriptor* descriptor) { 285 CodeStubInterfaceDescriptor* descriptor) {
286 static Register registers[] = { a0, a3, a1, a2 }; 286 static Register registers[] = { a0, a3, a1, a2 };
287 descriptor->register_param_count_ = 4; 287 descriptor->register_param_count_ = 4;
288 descriptor->register_params_ = registers; 288 descriptor->register_params_ = registers;
289 descriptor->deoptimization_handler_ = 289 descriptor->deoptimization_handler_ =
290 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 290 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
291 } 291 }
292 292
293 293
294 void NewStringAddStub::InitializeInterfaceDescriptor(
295 Isolate* isolate,
296 CodeStubInterfaceDescriptor* descriptor) {
297 static Register registers[] = { a1, a0 };
298 descriptor->register_param_count_ = 2;
299 descriptor->register_params_ = registers;
300 descriptor->deoptimization_handler_ =
301 Runtime::FunctionForId(Runtime::kStringAdd)->entry;
302 }
303
304
294 #define __ ACCESS_MASM(masm) 305 #define __ ACCESS_MASM(masm)
295 306
296 307
297 static void EmitIdenticalObjectComparison(MacroAssembler* masm, 308 static void EmitIdenticalObjectComparison(MacroAssembler* masm,
298 Label* slow, 309 Label* slow,
299 Condition cc); 310 Condition cc);
300 static void EmitSmiNonsmiComparison(MacroAssembler* masm, 311 static void EmitSmiNonsmiComparison(MacroAssembler* masm,
301 Register lhs, 312 Register lhs,
302 Register rhs, 313 Register rhs,
303 Label* rhs_not_nan, 314 Label* rhs_not_nan,
(...skipping 4845 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 } 5160 }
5150 5161
5151 5162
5152 void ICCompareStub::GenerateMiss(MacroAssembler* masm) { 5163 void ICCompareStub::GenerateMiss(MacroAssembler* masm) {
5153 { 5164 {
5154 // Call the runtime system in a fresh internal frame. 5165 // Call the runtime system in a fresh internal frame.
5155 ExternalReference miss = 5166 ExternalReference miss =
5156 ExternalReference(IC_Utility(IC::kCompareIC_Miss), masm->isolate()); 5167 ExternalReference(IC_Utility(IC::kCompareIC_Miss), masm->isolate());
5157 FrameScope scope(masm, StackFrame::INTERNAL); 5168 FrameScope scope(masm, StackFrame::INTERNAL);
5158 __ Push(a1, a0); 5169 __ Push(a1, a0);
5159 __ push(ra); 5170 __ Push(ra, a1, a0);
5160 __ Push(a1, a0);
5161 __ li(t0, Operand(Smi::FromInt(op_))); 5171 __ li(t0, Operand(Smi::FromInt(op_)));
5162 __ addiu(sp, sp, -kPointerSize); 5172 __ addiu(sp, sp, -kPointerSize);
5163 __ CallExternalReference(miss, 3, USE_DELAY_SLOT); 5173 __ CallExternalReference(miss, 3, USE_DELAY_SLOT);
5164 __ sw(t0, MemOperand(sp)); // In the delay slot. 5174 __ sw(t0, MemOperand(sp)); // In the delay slot.
5165 // Compute the entry point of the rewritten stub. 5175 // Compute the entry point of the rewritten stub.
5166 __ Addu(a2, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); 5176 __ Addu(a2, v0, Operand(Code::kHeaderSize - kHeapObjectTag));
5167 // Restore registers. 5177 // Restore registers.
5168 __ Pop(a1, a0, ra); 5178 __ Pop(a1, a0, ra);
5169 } 5179 }
5170 __ Jump(a2); 5180 __ Jump(a2);
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
6216 __ bind(&fast_elements_case); 6226 __ bind(&fast_elements_case);
6217 GenerateCase(masm, FAST_ELEMENTS); 6227 GenerateCase(masm, FAST_ELEMENTS);
6218 } 6228 }
6219 6229
6220 6230
6221 #undef __ 6231 #undef __
6222 6232
6223 } } // namespace v8::internal 6233 } } // namespace v8::internal
6224 6234
6225 #endif // V8_TARGET_ARCH_MIPS 6235 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698