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