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/ic-arm.cc

Issue 8344045: Fast elements conversions in crankshaft using generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 } 1244 }
1245 1245
1246 1246
1247 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { 1247 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
1248 // ---------- S t a t e -------------- 1248 // ---------- S t a t e --------------
1249 // -- r2 : receiver 1249 // -- r2 : receiver
1250 // -- lr : return address 1250 // -- lr : return address
1251 // ----------------------------------- 1251 // -----------------------------------
1252 // Must return the modified receiver in r0. 1252 // Must return the modified receiver in r0.
1253 1253
1254 __ push(r2); 1254 FastElementsConversionStub::GenerateSmiOnlyToDouble(
1255 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1); 1255 masm, FastElementsConversionStub::TRANSITION_ONLY);
1256 } 1256 }
1257 1257
1258 1258
1259 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( 1259 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
1260 MacroAssembler* masm) { 1260 MacroAssembler* masm) {
1261 // ---------- S t a t e -------------- 1261 // ---------- S t a t e --------------
1262 // -- r2 : receiver 1262 // -- r2 : receiver
1263 // -- lr : return address 1263 // -- lr : return address
1264 // ----------------------------------- 1264 // -----------------------------------
1265 // Must return the modified receiver in r0. 1265 // Must return the modified receiver in r0.
1266 1266
1267 __ push(r2); 1267 FastElementsConversionStub::GenerateDoubleToObject(
1268 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1); 1268 masm, FastElementsConversionStub::TRANSITION_ONLY);
1269 } 1269 }
1270 1270
1271 1271
1272 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, 1272 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm,
1273 StrictModeFlag strict_mode) { 1273 StrictModeFlag strict_mode) {
1274 // ---------- S t a t e -------------- 1274 // ---------- S t a t e --------------
1275 // -- r0 : value 1275 // -- r0 : value
1276 // -- r1 : key 1276 // -- r1 : key
1277 // -- r2 : receiver 1277 // -- r2 : receiver
1278 // -- lr : return address 1278 // -- lr : return address
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 Register reg = Assembler::GetRn(instr_at_patch); 1689 Register reg = Assembler::GetRn(instr_at_patch);
1690 patcher.masm()->tst(reg, Operand(kSmiTagMask)); 1690 patcher.masm()->tst(reg, Operand(kSmiTagMask));
1691 patcher.EmitCondition(eq); 1691 patcher.EmitCondition(eq);
1692 } 1692 }
1693 } 1693 }
1694 1694
1695 1695
1696 } } // namespace v8::internal 1696 } } // namespace v8::internal
1697 1697
1698 #endif // V8_TARGET_ARCH_ARM 1698 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698