| 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 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2927   __ lea(rcx, | 2927   __ lea(rcx, | 
| 2928          Operand( | 2928          Operand( | 
| 2929              rbx, index.reg, index.scale, DescriptorArray::kFirstOffset)); | 2929              rbx, index.reg, index.scale, DescriptorArray::kFirstOffset)); | 
| 2930   // Calculate location of the first key name. | 2930   // Calculate location of the first key name. | 
| 2931   __ addq(rbx, Immediate(DescriptorArray::kFirstOffset)); | 2931   __ addq(rbx, Immediate(DescriptorArray::kFirstOffset)); | 
| 2932   // Loop through all the keys in the descriptor array. If one of these is the | 2932   // Loop through all the keys in the descriptor array. If one of these is the | 
| 2933   // internalized string "valueOf" the result is false. | 2933   // internalized string "valueOf" the result is false. | 
| 2934   __ jmp(&entry); | 2934   __ jmp(&entry); | 
| 2935   __ bind(&loop); | 2935   __ bind(&loop); | 
| 2936   __ movq(rdx, FieldOperand(rbx, 0)); | 2936   __ movq(rdx, FieldOperand(rbx, 0)); | 
| 2937   __ Cmp(rdx, FACTORY->value_of_string()); | 2937   __ Cmp(rdx, isolate()->factory()->value_of_string()); | 
| 2938   __ j(equal, if_false); | 2938   __ j(equal, if_false); | 
| 2939   __ addq(rbx, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); | 2939   __ addq(rbx, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); | 
| 2940   __ bind(&entry); | 2940   __ bind(&entry); | 
| 2941   __ cmpq(rbx, rcx); | 2941   __ cmpq(rbx, rcx); | 
| 2942   __ j(not_equal, &loop); | 2942   __ j(not_equal, &loop); | 
| 2943 | 2943 | 
| 2944   __ bind(&done); | 2944   __ bind(&done); | 
| 2945   // Reload map as register rbx was used as temporary above. | 2945   // Reload map as register rbx was used as temporary above. | 
| 2946   __ movq(rbx, FieldOperand(rax, HeapObject::kMapOffset)); | 2946   __ movq(rbx, FieldOperand(rax, HeapObject::kMapOffset)); | 
| 2947 | 2947 | 
| (...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4859   *context_length = 0; | 4859   *context_length = 0; | 
| 4860   return previous_; | 4860   return previous_; | 
| 4861 } | 4861 } | 
| 4862 | 4862 | 
| 4863 | 4863 | 
| 4864 #undef __ | 4864 #undef __ | 
| 4865 | 4865 | 
| 4866 } }  // namespace v8::internal | 4866 } }  // namespace v8::internal | 
| 4867 | 4867 | 
| 4868 #endif  // V8_TARGET_ARCH_X64 | 4868 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|