| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 ExternalReference value_offset(SCTableReference::valueReference(table)); | 46 ExternalReference value_offset(SCTableReference::valueReference(table)); |
| 47 | 47 |
| 48 Label miss; | 48 Label miss; |
| 49 | 49 |
| 50 // Save the offset on the stack. | 50 // Save the offset on the stack. |
| 51 __ push(offset); | 51 __ push(offset); |
| 52 | 52 |
| 53 // Check that the key in the entry matches the name. | 53 // Check that the key in the entry matches the name. |
| 54 __ mov(ip, Operand(key_offset)); | 54 __ mov(ip, Operand(key_offset)); |
| 55 __ ldr(ip, MemOperand(ip, offset, LSL, 1)); | 55 __ ldr(ip, MemOperand(ip, offset, LSL, 1)); |
| 56 __ cmp(name, Operand(ip)); | 56 __ cmp(name, ip); |
| 57 __ b(ne, &miss); | 57 __ b(ne, &miss); |
| 58 | 58 |
| 59 // Get the code entry from the cache. | 59 // Get the code entry from the cache. |
| 60 __ mov(ip, Operand(value_offset)); | 60 __ mov(ip, Operand(value_offset)); |
| 61 __ ldr(offset, MemOperand(ip, offset, LSL, 1)); | 61 __ ldr(offset, MemOperand(ip, offset, LSL, 1)); |
| 62 | 62 |
| 63 // Check that the flags match what we're looking for. | 63 // Check that the flags match what we're looking for. |
| 64 __ ldr(offset, FieldMemOperand(offset, Code::kFlagsOffset)); | 64 __ ldr(offset, FieldMemOperand(offset, Code::kFlagsOffset)); |
| 65 __ and_(offset, offset, Operand(~Code::kFlagsNotUsedInLookup)); | 65 __ and_(offset, offset, Operand(~Code::kFlagsNotUsedInLookup)); |
| 66 __ cmp(offset, Operand(flags)); | 66 __ cmp(offset, Operand(flags)); |
| (...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1955 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 1955 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 1956 | 1956 |
| 1957 // Return the generated code. | 1957 // Return the generated code. |
| 1958 return GetCode(); | 1958 return GetCode(); |
| 1959 } | 1959 } |
| 1960 | 1960 |
| 1961 | 1961 |
| 1962 #undef __ | 1962 #undef __ |
| 1963 | 1963 |
| 1964 } } // namespace v8::internal | 1964 } } // namespace v8::internal |
| OLD | NEW |