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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: Review fixes and ports Created 9 years, 8 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
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3216 ASSERT(ToRegister(instr->key()).is(r1)); 3216 ASSERT(ToRegister(instr->key()).is(r1));
3217 ASSERT(ToRegister(instr->value()).is(r0)); 3217 ASSERT(ToRegister(instr->value()).is(r0));
3218 3218
3219 Handle<Code> ic = instr->strict_mode() 3219 Handle<Code> ic = instr->strict_mode()
3220 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() 3220 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
3221 : isolate()->builtins()->KeyedStoreIC_Initialize(); 3221 : isolate()->builtins()->KeyedStoreIC_Initialize();
3222 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3222 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3223 } 3223 }
3224 3224
3225 3225
3226 void LCodeGen::DoStringAdd(LStringAdd* instr) {
3227 __ push(ToRegister(instr->left()));
3228 __ push(ToRegister(instr->right()));
3229 StringAddStub stub(NO_STRING_CHECK_IN_STUB);
3230 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3231 }
3232
3233
3226 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { 3234 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) {
3227 class DeferredStringCharCodeAt: public LDeferredCode { 3235 class DeferredStringCharCodeAt: public LDeferredCode {
3228 public: 3236 public:
3229 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) 3237 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr)
3230 : LDeferredCode(codegen), instr_(instr) { } 3238 : LDeferredCode(codegen), instr_(instr) { }
3231 virtual void Generate() { codegen()->DoDeferredStringCharCodeAt(instr_); } 3239 virtual void Generate() { codegen()->DoDeferredStringCharCodeAt(instr_); }
3232 private: 3240 private:
3233 LStringCharCodeAt* instr_; 3241 LStringCharCodeAt* instr_;
3234 }; 3242 };
3235 3243
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
4198 ASSERT(!environment->HasBeenRegistered()); 4206 ASSERT(!environment->HasBeenRegistered());
4199 RegisterEnvironmentForDeoptimization(environment); 4207 RegisterEnvironmentForDeoptimization(environment);
4200 ASSERT(osr_pc_offset_ == -1); 4208 ASSERT(osr_pc_offset_ == -1);
4201 osr_pc_offset_ = masm()->pc_offset(); 4209 osr_pc_offset_ = masm()->pc_offset();
4202 } 4210 }
4203 4211
4204 4212
4205 #undef __ 4213 #undef __
4206 4214
4207 } } // namespace v8::internal 4215 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698