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

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

Issue 69953005: MIPS: Add initial hydrogenized NewStringAddStub. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: 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
« no previous file with comments | « no previous file | src/mips/full-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 273 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 5911 matching lines...) Expand 10 before | Expand all | Expand 10 after
6215 __ bind(&fast_elements_case); 6226 __ bind(&fast_elements_case);
6216 GenerateCase(masm, FAST_ELEMENTS); 6227 GenerateCase(masm, FAST_ELEMENTS);
6217 } 6228 }
6218 6229
6219 6230
6220 #undef __ 6231 #undef __
6221 6232
6222 } } // namespace v8::internal 6233 } } // namespace v8::internal
6223 6234
6224 #endif // V8_TARGET_ARCH_MIPS 6235 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698