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

Side by Side Diff: src/x64/ic-x64.cc

Issue 596011: Change GenerateLoadStringLength to have two scratch registers on all platform... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 void LoadIC::GenerateStringLength(MacroAssembler* masm) { 1295 void LoadIC::GenerateStringLength(MacroAssembler* masm) {
1296 // ----------- S t a t e ------------- 1296 // ----------- S t a t e -------------
1297 // -- rcx : name 1297 // -- rcx : name
1298 // -- rsp[0] : return address 1298 // -- rsp[0] : return address
1299 // -- rsp[8] : receiver 1299 // -- rsp[8] : receiver
1300 // ----------------------------------- 1300 // -----------------------------------
1301 Label miss; 1301 Label miss;
1302 1302
1303 __ movq(rax, Operand(rsp, kPointerSize)); 1303 __ movq(rax, Operand(rsp, kPointerSize));
1304 1304
1305 StubCompiler::GenerateLoadStringLength(masm, rax, rdx, &miss); 1305 StubCompiler::GenerateLoadStringLength(masm, rax, rdx, rbx, &miss);
1306 __ bind(&miss); 1306 __ bind(&miss);
1307 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 1307 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
1308 } 1308 }
1309 1309
1310 1310
1311 1311
1312 bool LoadIC::PatchInlinedLoad(Address address, Object* map, int offset) { 1312 bool LoadIC::PatchInlinedLoad(Address address, Object* map, int offset) {
1313 // The address of the instruction following the call. 1313 // The address of the instruction following the call.
1314 Address test_instruction_address = 1314 Address test_instruction_address =
1315 address + Assembler::kCallTargetAddressOffset; 1315 address + Assembler::kCallTargetAddressOffset;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 1389
1390 // Cache miss: Jump to runtime. 1390 // Cache miss: Jump to runtime.
1391 GenerateMiss(masm); 1391 GenerateMiss(masm);
1392 } 1392 }
1393 1393
1394 1394
1395 #undef __ 1395 #undef __
1396 1396
1397 1397
1398 } } // namespace v8::internal 1398 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698