OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_state, | 400 extra_state, |
401 NORMAL, | 401 Code::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, t2); | 404 masm, flags, a1, a2, a3, t0, t1, t2); |
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 // |
411 // Check for number. | 411 // Check for number. |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1753 } else { | 1753 } else { |
1754 ASSERT(Assembler::IsBne(branch_instr)); | 1754 ASSERT(Assembler::IsBne(branch_instr)); |
1755 patcher.ChangeBranchCondition(eq); | 1755 patcher.ChangeBranchCondition(eq); |
1756 } | 1756 } |
1757 } | 1757 } |
1758 | 1758 |
1759 | 1759 |
1760 } } // namespace v8::internal | 1760 } } // namespace v8::internal |
1761 | 1761 |
1762 #endif // V8_TARGET_ARCH_MIPS | 1762 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |