OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/api.h" | 5 #include "src/api.h" |
6 | 6 |
7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
(...skipping 3582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3593 } | 3593 } |
3594 | 3594 |
3595 | 3595 |
3596 Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) { | 3596 Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) { |
3597 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 3597 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
3598 ON_BAILOUT(isolate, "v8::Object::GetRealNamedProperty()", | 3598 ON_BAILOUT(isolate, "v8::Object::GetRealNamedProperty()", |
3599 return Local<Value>()); | 3599 return Local<Value>()); |
3600 ENTER_V8(isolate); | 3600 ENTER_V8(isolate); |
3601 i::Handle<i::JSObject> self_obj = Utils::OpenHandle(this); | 3601 i::Handle<i::JSObject> self_obj = Utils::OpenHandle(this); |
3602 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); | 3602 i::Handle<i::String> key_obj = Utils::OpenHandle(*key); |
3603 i::LookupIterator it(self_obj, key_obj, i::LookupIterator::CHECK_PROPERTY); | 3603 i::LookupIterator it(self_obj, key_obj, |
| 3604 i::LookupIterator::CHECK_DERIVED_PROPERTY); |
3604 return GetPropertyByLookup(&it); | 3605 return GetPropertyByLookup(&it); |
3605 } | 3606 } |
3606 | 3607 |
3607 | 3608 |
3608 // Turns on access checks by copying the map and setting the check flag. | 3609 // Turns on access checks by copying the map and setting the check flag. |
3609 // Because the object gets a new map, existing inline cache caching | 3610 // Because the object gets a new map, existing inline cache caching |
3610 // the old map of this object will fail. | 3611 // the old map of this object will fail. |
3611 void v8::Object::TurnOnAccessCheck() { | 3612 void v8::Object::TurnOnAccessCheck() { |
3612 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 3613 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
3613 ON_BAILOUT(isolate, "v8::Object::TurnOnAccessCheck()", return); | 3614 ON_BAILOUT(isolate, "v8::Object::TurnOnAccessCheck()", return); |
(...skipping 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7654 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7655 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7655 Address callback_address = | 7656 Address callback_address = |
7656 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7657 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7657 VMState<EXTERNAL> state(isolate); | 7658 VMState<EXTERNAL> state(isolate); |
7658 ExternalCallbackScope call_scope(isolate, callback_address); | 7659 ExternalCallbackScope call_scope(isolate, callback_address); |
7659 callback(info); | 7660 callback(info); |
7660 } | 7661 } |
7661 | 7662 |
7662 | 7663 |
7663 } } // namespace v8::internal | 7664 } } // namespace v8::internal |
OLD | NEW |