| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 String* name, | 132 String* name, |
| 133 PropertyAttributes* attributes) { | 133 PropertyAttributes* attributes) { |
| 134 LookupResult result; | 134 LookupResult result; |
| 135 Lookup(name, &result); | 135 Lookup(name, &result); |
| 136 Object* value = GetProperty(receiver, &result, name, attributes); | 136 Object* value = GetProperty(receiver, &result, name, attributes); |
| 137 ASSERT(*attributes <= ABSENT); | 137 ASSERT(*attributes <= ABSENT); |
| 138 return value; | 138 return value; |
| 139 } | 139 } |
| 140 | 140 |
| 141 | 141 |
| 142 Object* Object::GetPropertyWithCallk | 142 Object* Object::GetPropertyWithCallback(Object* receiver, |
| 143 jback(Object* receiver, | |
| 144 Object* structure, | 143 Object* structure, |
| 145 String* name, | 144 String* name, |
| 146 Object* holder) { | 145 Object* holder) { |
| 147 // To accommodate both the old and the new api we switch on the | 146 // To accommodate both the old and the new api we switch on the |
| 148 // data structure used to store the callbacks. Eventually proxy | 147 // data structure used to store the callbacks. Eventually proxy |
| 149 // callbacks should be phased out. | 148 // callbacks should be phased out. |
| 150 if (structure->IsProxy()) { | 149 if (structure->IsProxy()) { |
| 151 AccessorDescriptor* callback = | 150 AccessorDescriptor* callback = |
| 152 reinterpret_cast<AccessorDescriptor*>(Proxy::cast(structure)->proxy()); | 151 reinterpret_cast<AccessorDescriptor*>(Proxy::cast(structure)->proxy()); |
| 153 Object* value = (callback->getter)(receiver, callback->data); | 152 Object* value = (callback->getter)(receiver, callback->data); |
| (...skipping 8396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8550 if (break_point_objects()->IsUndefined()) return 0; | 8549 if (break_point_objects()->IsUndefined()) return 0; |
| 8551 // Single beak point. | 8550 // Single beak point. |
| 8552 if (!break_point_objects()->IsFixedArray()) return 1; | 8551 if (!break_point_objects()->IsFixedArray()) return 1; |
| 8553 // Multiple break points. | 8552 // Multiple break points. |
| 8554 return FixedArray::cast(break_point_objects())->length(); | 8553 return FixedArray::cast(break_point_objects())->length(); |
| 8555 } | 8554 } |
| 8556 #endif | 8555 #endif |
| 8557 | 8556 |
| 8558 | 8557 |
| 8559 } } // namespace v8::internal | 8558 } } // namespace v8::internal |
| OLD | NEW |