| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 | 2180 |
| 2181 Execution::Call(isolate, | 2181 Execution::Call(isolate, |
| 2182 Handle<JSFunction>(isolate->observers_notify_change()), | 2182 Handle<JSFunction>(isolate->observers_notify_change()), |
| 2183 isolate->factory()->undefined_value(), | 2183 isolate->factory()->undefined_value(), |
| 2184 argc, args, | 2184 argc, args, |
| 2185 &threw); | 2185 &threw); |
| 2186 ASSERT(!threw); | 2186 ASSERT(!threw); |
| 2187 } | 2187 } |
| 2188 | 2188 |
| 2189 | 2189 |
| 2190 void JSObject::DeliverChangeRecords(Isolate* isolate) { | |
| 2191 ASSERT(isolate->observer_delivery_pending()); | |
| 2192 bool threw = false; | |
| 2193 Execution::Call( | |
| 2194 isolate, | |
| 2195 isolate->observers_deliver_changes(), | |
| 2196 isolate->factory()->undefined_value(), | |
| 2197 0, | |
| 2198 NULL, | |
| 2199 &threw); | |
| 2200 ASSERT(!threw); | |
| 2201 isolate->set_observer_delivery_pending(false); | |
| 2202 } | |
| 2203 | |
| 2204 | |
| 2205 Handle<Object> JSObject::SetPropertyPostInterceptor( | 2190 Handle<Object> JSObject::SetPropertyPostInterceptor( |
| 2206 Handle<JSObject> object, | 2191 Handle<JSObject> object, |
| 2207 Handle<Name> name, | 2192 Handle<Name> name, |
| 2208 Handle<Object> value, | 2193 Handle<Object> value, |
| 2209 PropertyAttributes attributes, | 2194 PropertyAttributes attributes, |
| 2210 StrictModeFlag strict_mode) { | 2195 StrictModeFlag strict_mode) { |
| 2211 // Check local property, ignore interceptor. | 2196 // Check local property, ignore interceptor. |
| 2212 LookupResult result(object->GetIsolate()); | 2197 LookupResult result(object->GetIsolate()); |
| 2213 object->LocalLookupRealNamedProperty(*name, &result); | 2198 object->LocalLookupRealNamedProperty(*name, &result); |
| 2214 if (!result.IsFound()) { | 2199 if (!result.IsFound()) { |
| (...skipping 14311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16526 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16511 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16527 static const char* error_messages_[] = { | 16512 static const char* error_messages_[] = { |
| 16528 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16513 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16529 }; | 16514 }; |
| 16530 #undef ERROR_MESSAGES_TEXTS | 16515 #undef ERROR_MESSAGES_TEXTS |
| 16531 return error_messages_[reason]; | 16516 return error_messages_[reason]; |
| 16532 } | 16517 } |
| 16533 | 16518 |
| 16534 | 16519 |
| 16535 } } // namespace v8::internal | 16520 } } // namespace v8::internal |
| OLD | NEW |