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 5102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5113 __ Branch(&done, eq, a3, Operand(a1)); | 5113 __ Branch(&done, eq, a3, Operand(a1)); |
5114 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 5114 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
5115 __ Branch(&done, eq, a3, Operand(at)); | 5115 __ Branch(&done, eq, a3, Operand(at)); |
5116 | 5116 |
5117 // Special handling of the Array() function, which caches not only the | 5117 // Special handling of the Array() function, which caches not only the |
5118 // monomorphic Array function but the initial ElementsKind with special | 5118 // monomorphic Array function but the initial ElementsKind with special |
5119 // sentinels | 5119 // sentinels |
5120 Handle<Object> terminal_kind_sentinel = | 5120 Handle<Object> terminal_kind_sentinel = |
5121 TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), | 5121 TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), |
5122 LAST_FAST_ELEMENTS_KIND); | 5122 LAST_FAST_ELEMENTS_KIND); |
| 5123 __ JumpIfNotSmi(a3, &miss); |
5123 __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel)); | 5124 __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel)); |
5124 // Make sure the function is the Array() function | 5125 // Make sure the function is the Array() function |
5125 __ LoadArrayFunction(a3); | 5126 __ LoadArrayFunction(a3); |
5126 __ Branch(&megamorphic, ne, a1, Operand(a3)); | 5127 __ Branch(&megamorphic, ne, a1, Operand(a3)); |
5127 __ jmp(&done); | 5128 __ jmp(&done); |
5128 | 5129 |
5129 __ bind(&miss); | 5130 __ bind(&miss); |
5130 | 5131 |
5131 // A monomorphic miss (i.e, here the cache is not uninitialized) goes | 5132 // A monomorphic miss (i.e, here the cache is not uninitialized) goes |
5132 // megamorphic. | 5133 // megamorphic. |
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7767 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7768 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7768 } | 7769 } |
7769 } | 7770 } |
7770 | 7771 |
7771 | 7772 |
7772 #undef __ | 7773 #undef __ |
7773 | 7774 |
7774 } } // namespace v8::internal | 7775 } } // namespace v8::internal |
7775 | 7776 |
7776 #endif // V8_TARGET_ARCH_MIPS | 7777 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |