OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |