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 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4064 __ Branch(&miss, ne, function, Operand(at)); | 4064 __ Branch(&miss, ne, function, Operand(at)); |
4065 __ LoadRoot(at, Heap::kInstanceofCacheMapRootIndex); | 4065 __ LoadRoot(at, Heap::kInstanceofCacheMapRootIndex); |
4066 __ Branch(&miss, ne, map, Operand(at)); | 4066 __ Branch(&miss, ne, map, Operand(at)); |
4067 __ LoadRoot(v0, Heap::kInstanceofCacheAnswerRootIndex); | 4067 __ LoadRoot(v0, Heap::kInstanceofCacheAnswerRootIndex); |
4068 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); | 4068 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); |
4069 | 4069 |
4070 __ bind(&miss); | 4070 __ bind(&miss); |
4071 } | 4071 } |
4072 | 4072 |
4073 // Get the prototype of the function. | 4073 // Get the prototype of the function. |
4074 __ TryGetFunctionPrototype(function, prototype, scratch, &slow); | 4074 __ TryGetFunctionPrototype(function, prototype, scratch, &slow, true); |
4075 | 4075 |
4076 // Check that the function prototype is a JS object. | 4076 // Check that the function prototype is a JS object. |
4077 __ JumpIfSmi(prototype, &slow); | 4077 __ JumpIfSmi(prototype, &slow); |
4078 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow); | 4078 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow); |
4079 | 4079 |
4080 // Update the global instanceof or call site inlined cache with the current | 4080 // Update the global instanceof or call site inlined cache with the current |
4081 // map and function. The cached answer will be set when it is known below. | 4081 // map and function. The cached answer will be set when it is known below. |
4082 if (!HasCallSiteInlineCheck()) { | 4082 if (!HasCallSiteInlineCheck()) { |
4083 __ StoreRoot(function, Heap::kInstanceofCacheFunctionRootIndex); | 4083 __ StoreRoot(function, Heap::kInstanceofCacheFunctionRootIndex); |
4084 __ StoreRoot(map, Heap::kInstanceofCacheMapRootIndex); | 4084 __ StoreRoot(map, Heap::kInstanceofCacheMapRootIndex); |
(...skipping 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7444 | 7444 |
7445 // Fall through when we need to inform the incremental marker. | 7445 // Fall through when we need to inform the incremental marker. |
7446 } | 7446 } |
7447 | 7447 |
7448 | 7448 |
7449 #undef __ | 7449 #undef __ |
7450 | 7450 |
7451 } } // namespace v8::internal | 7451 } } // namespace v8::internal |
7452 | 7452 |
7453 #endif // V8_TARGET_ARCH_MIPS | 7453 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |