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 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2952 return static_cast<PropertyAttribute>(result); | 2952 return static_cast<PropertyAttribute>(result); |
2953 } | 2953 } |
2954 | 2954 |
2955 | 2955 |
2956 Local<Value> v8::Object::GetPrototype() { | 2956 Local<Value> v8::Object::GetPrototype() { |
2957 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 2957 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
2958 ON_BAILOUT(isolate, "v8::Object::GetPrototype()", | 2958 ON_BAILOUT(isolate, "v8::Object::GetPrototype()", |
2959 return Local<v8::Value>()); | 2959 return Local<v8::Value>()); |
2960 ENTER_V8(isolate); | 2960 ENTER_V8(isolate); |
2961 i::Handle<i::Object> self = Utils::OpenHandle(this); | 2961 i::Handle<i::Object> self = Utils::OpenHandle(this); |
2962 i::Handle<i::Object> result(self->GetPrototype(), isolate); | 2962 i::Handle<i::Object> result(self->GetPrototype(isolate), isolate); |
2963 return Utils::ToLocal(result); | 2963 return Utils::ToLocal(result); |
2964 } | 2964 } |
2965 | 2965 |
2966 | 2966 |
2967 bool v8::Object::SetPrototype(Handle<Value> value) { | 2967 bool v8::Object::SetPrototype(Handle<Value> value) { |
2968 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 2968 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
2969 ON_BAILOUT(isolate, "v8::Object::SetPrototype()", return false); | 2969 ON_BAILOUT(isolate, "v8::Object::SetPrototype()", return false); |
2970 ENTER_V8(isolate); | 2970 ENTER_V8(isolate); |
2971 i::Handle<i::JSObject> self = Utils::OpenHandle(this); | 2971 i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
2972 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); | 2972 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); |
(...skipping 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6716 | 6716 |
6717 v->VisitPointers(blocks_.first(), first_block_limit_); | 6717 v->VisitPointers(blocks_.first(), first_block_limit_); |
6718 | 6718 |
6719 for (int i = 1; i < blocks_.length(); i++) { | 6719 for (int i = 1; i < blocks_.length(); i++) { |
6720 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6720 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6721 } | 6721 } |
6722 } | 6722 } |
6723 | 6723 |
6724 | 6724 |
6725 } } // namespace v8::internal | 6725 } } // namespace v8::internal |
OLD | NEW |