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

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

Issue 61893009: Add initial hydrogenized NewStringAddStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test case for --new-string-add. 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 | « no previous file | src/arm/full-codegen-arm.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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 Isolate* isolate, 295 Isolate* isolate,
296 CodeStubInterfaceDescriptor* descriptor) { 296 CodeStubInterfaceDescriptor* descriptor) {
297 static Register registers[] = { r0, r3, r1, r2 }; 297 static Register registers[] = { r0, r3, r1, r2 };
298 descriptor->register_param_count_ = 4; 298 descriptor->register_param_count_ = 4;
299 descriptor->register_params_ = registers; 299 descriptor->register_params_ = registers;
300 descriptor->deoptimization_handler_ = 300 descriptor->deoptimization_handler_ =
301 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss); 301 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss);
302 } 302 }
303 303
304 304
305 void NewStringAddStub::InitializeInterfaceDescriptor(
306 Isolate* isolate,
307 CodeStubInterfaceDescriptor* descriptor) {
308 static Register registers[] = { r1, r0 };
309 descriptor->register_param_count_ = 2;
310 descriptor->register_params_ = registers;
311 descriptor->deoptimization_handler_ =
312 Runtime::FunctionForId(Runtime::kStringAdd)->entry;
313 }
314
315
305 #define __ ACCESS_MASM(masm) 316 #define __ ACCESS_MASM(masm)
306 317
307 318
308 static void EmitIdenticalObjectComparison(MacroAssembler* masm, 319 static void EmitIdenticalObjectComparison(MacroAssembler* masm,
309 Label* slow, 320 Label* slow,
310 Condition cond); 321 Condition cond);
311 static void EmitSmiNonsmiComparison(MacroAssembler* masm, 322 static void EmitSmiNonsmiComparison(MacroAssembler* masm,
312 Register lhs, 323 Register lhs,
313 Register rhs, 324 Register rhs,
314 Label* lhs_not_nan, 325 Label* lhs_not_nan,
(...skipping 5747 matching lines...) Expand 10 before | Expand all | Expand 10 after
6062 __ bind(&fast_elements_case); 6073 __ bind(&fast_elements_case);
6063 GenerateCase(masm, FAST_ELEMENTS); 6074 GenerateCase(masm, FAST_ELEMENTS);
6064 } 6075 }
6065 6076
6066 6077
6067 #undef __ 6078 #undef __
6068 6079
6069 } } // namespace v8::internal 6080 } } // namespace v8::internal
6070 6081
6071 #endif // V8_TARGET_ARCH_ARM 6082 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698