OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 ASSERT(TenToThe(String::kMaxCachedArrayIndexLength) < | 401 ASSERT(TenToThe(String::kMaxCachedArrayIndexLength) < |
402 (1 << String::kArrayIndexValueBits)); | 402 (1 << String::kArrayIndexValueBits)); |
403 __ bind(&index_string); | 403 __ bind(&index_string); |
404 __ movl(rax, rbx); | 404 __ movl(rax, rbx); |
405 __ and_(rax, Immediate(String::kArrayIndexHashMask)); | 405 __ and_(rax, Immediate(String::kArrayIndexHashMask)); |
406 __ shrl(rax, Immediate(String::kHashShift)); | 406 __ shrl(rax, Immediate(String::kHashShift)); |
407 __ jmp(&index_int); | 407 __ jmp(&index_int); |
408 } | 408 } |
409 | 409 |
410 | 410 |
| 411 void KeyedLoadIC::GenerateString(MacroAssembler* masm) { |
| 412 // ----------- S t a t e ------------- |
| 413 // -- rsp[0] : return address |
| 414 // -- rsp[8] : name |
| 415 // -- rsp[16] : receiver |
| 416 // ----------------------------------- |
| 417 GenerateGeneric(masm); |
| 418 } |
| 419 |
| 420 |
411 void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, | 421 void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, |
412 ExternalArrayType array_type) { | 422 ExternalArrayType array_type) { |
413 // ----------- S t a t e ------------- | 423 // ----------- S t a t e ------------- |
414 // -- rsp[0] : return address | 424 // -- rsp[0] : return address |
415 // -- rsp[8] : name | 425 // -- rsp[8] : name |
416 // -- rsp[16] : receiver | 426 // -- rsp[16] : receiver |
417 // ----------------------------------- | 427 // ----------------------------------- |
418 Label slow, failed_allocation; | 428 Label slow, failed_allocation; |
419 | 429 |
420 // Load name and receiver. | 430 // Load name and receiver. |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 | 1383 |
1374 // Cache miss: Jump to runtime. | 1384 // Cache miss: Jump to runtime. |
1375 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); | 1385 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); |
1376 } | 1386 } |
1377 | 1387 |
1378 | 1388 |
1379 #undef __ | 1389 #undef __ |
1380 | 1390 |
1381 | 1391 |
1382 } } // namespace v8::internal | 1392 } } // namespace v8::internal |
OLD | NEW |