| OLD | NEW |
| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 __ tst(hash, Operand(kIsSymbolMask)); | 375 __ tst(hash, Operand(kIsSymbolMask)); |
| 376 __ b(eq, not_symbol); | 376 __ b(eq, not_symbol); |
| 377 } | 377 } |
| 378 | 378 |
| 379 | 379 |
| 380 // Defined in ic.cc. | 380 // Defined in ic.cc. |
| 381 Object* CallIC_Miss(Arguments args); | 381 Object* CallIC_Miss(Arguments args); |
| 382 | 382 |
| 383 // The generated code does not accept smi keys. | 383 // The generated code does not accept smi keys. |
| 384 // The generated code falls through if both probes miss. | 384 // The generated code falls through if both probes miss. |
| 385 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, | 385 void CallICBase::GenerateMonomorphicCacheProbe(MacroAssembler* masm, |
| 386 int argc, | 386 int argc, |
| 387 Code::Kind kind, | 387 Code::Kind kind, |
| 388 Code::ExtraICState extra_ic_state) { | 388 Code::ExtraICState extra_state) { |
| 389 // ----------- S t a t e ------------- | 389 // ----------- S t a t e ------------- |
| 390 // -- r1 : receiver | 390 // -- r1 : receiver |
| 391 // -- r2 : name | 391 // -- r2 : name |
| 392 // ----------------------------------- | 392 // ----------------------------------- |
| 393 Label number, non_number, non_string, boolean, probe, miss; | 393 Label number, non_number, non_string, boolean, probe, miss; |
| 394 | 394 |
| 395 // Probe the stub cache. | 395 // Probe the stub cache. |
| 396 Code::Flags flags = Code::ComputeFlags(kind, | 396 Code::Flags flags = Code::ComputeFlags(kind, |
| 397 MONOMORPHIC, | 397 MONOMORPHIC, |
| 398 extra_ic_state, | 398 extra_state, |
| 399 NORMAL, | 399 NORMAL, |
| 400 argc); | 400 argc); |
| 401 Isolate::Current()->stub_cache()->GenerateProbe( | 401 Isolate::Current()->stub_cache()->GenerateProbe( |
| 402 masm, flags, r1, r2, r3, r4, r5); | 402 masm, flags, r1, r2, r3, r4, r5); |
| 403 | 403 |
| 404 // If the stub cache probing failed, the receiver might be a value. | 404 // If the stub cache probing failed, the receiver might be a value. |
| 405 // For value objects, we use the map of the prototype objects for | 405 // For value objects, we use the map of the prototype objects for |
| 406 // the corresponding JSValue for the cache and that is what we need | 406 // the corresponding JSValue for the cache and that is what we need |
| 407 // to probe. | 407 // to probe. |
| 408 // | 408 // |
| (...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1672 Register reg = Assembler::GetRn(instr_at_patch); | 1672 Register reg = Assembler::GetRn(instr_at_patch); |
| 1673 patcher.masm()->tst(reg, Operand(kSmiTagMask)); | 1673 patcher.masm()->tst(reg, Operand(kSmiTagMask)); |
| 1674 patcher.EmitCondition(eq); | 1674 patcher.EmitCondition(eq); |
| 1675 } | 1675 } |
| 1676 } | 1676 } |
| 1677 | 1677 |
| 1678 | 1678 |
| 1679 } } // namespace v8::internal | 1679 } } // namespace v8::internal |
| 1680 | 1680 |
| 1681 #endif // V8_TARGET_ARCH_ARM | 1681 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |