| 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 4851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4862 scratch, times_pointer_size, roots_address)); | 4862 scratch, times_pointer_size, roots_address)); |
| 4863 __ j(not_equal, &miss, Label::kNear); | 4863 __ j(not_equal, &miss, Label::kNear); |
| 4864 __ mov(scratch, Immediate(Heap::kInstanceofCacheAnswerRootIndex)); | 4864 __ mov(scratch, Immediate(Heap::kInstanceofCacheAnswerRootIndex)); |
| 4865 __ mov(eax, Operand::StaticArray( | 4865 __ mov(eax, Operand::StaticArray( |
| 4866 scratch, times_pointer_size, roots_address)); | 4866 scratch, times_pointer_size, roots_address)); |
| 4867 __ ret((HasArgsInRegisters() ? 0 : 2) * kPointerSize); | 4867 __ ret((HasArgsInRegisters() ? 0 : 2) * kPointerSize); |
| 4868 __ bind(&miss); | 4868 __ bind(&miss); |
| 4869 } | 4869 } |
| 4870 | 4870 |
| 4871 // Get the prototype of the function. | 4871 // Get the prototype of the function. |
| 4872 __ TryGetFunctionPrototype(function, prototype, scratch, &slow); | 4872 __ TryGetFunctionPrototype(function, prototype, scratch, &slow, true); |
| 4873 | 4873 |
| 4874 // Check that the function prototype is a JS object. | 4874 // Check that the function prototype is a JS object. |
| 4875 __ JumpIfSmi(prototype, &slow); | 4875 __ JumpIfSmi(prototype, &slow); |
| 4876 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow); | 4876 __ IsObjectJSObjectType(prototype, scratch, scratch, &slow); |
| 4877 | 4877 |
| 4878 // Update the global instanceof or call site inlined cache with the current | 4878 // Update the global instanceof or call site inlined cache with the current |
| 4879 // map and function. The cached answer will be set when it is known below. | 4879 // map and function. The cached answer will be set when it is known below. |
| 4880 if (!HasCallSiteInlineCheck()) { | 4880 if (!HasCallSiteInlineCheck()) { |
| 4881 __ mov(scratch, Immediate(Heap::kInstanceofCacheMapRootIndex)); | 4881 __ mov(scratch, Immediate(Heap::kInstanceofCacheMapRootIndex)); |
| 4882 __ mov(Operand::StaticArray(scratch, times_pointer_size, roots_address), map); | 4882 __ mov(Operand::StaticArray(scratch, times_pointer_size, roots_address), map); |
| (...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7247 __ pop(eax); | 7247 __ pop(eax); |
| 7248 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode); | 7248 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode); |
| 7249 __ bind(&done); | 7249 __ bind(&done); |
| 7250 } | 7250 } |
| 7251 | 7251 |
| 7252 #undef __ | 7252 #undef __ |
| 7253 | 7253 |
| 7254 } } // namespace v8::internal | 7254 } } // namespace v8::internal |
| 7255 | 7255 |
| 7256 #endif // V8_TARGET_ARCH_IA32 | 7256 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |