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 2842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2853 v8::PropertyAttribute attribs) { | 2853 v8::PropertyAttribute attribs) { |
2854 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | 2854 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
2855 ON_BAILOUT(isolate, "v8::Object::Set()", return false); | 2855 ON_BAILOUT(isolate, "v8::Object::Set()", return false); |
2856 ENTER_V8(isolate); | 2856 ENTER_V8(isolate); |
2857 i::HandleScope scope(isolate); | 2857 i::HandleScope scope(isolate); |
2858 i::Handle<i::Object> self = Utils::OpenHandle(this); | 2858 i::Handle<i::Object> self = Utils::OpenHandle(this); |
2859 i::Handle<i::Object> key_obj = Utils::OpenHandle(*key); | 2859 i::Handle<i::Object> key_obj = Utils::OpenHandle(*key); |
2860 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); | 2860 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); |
2861 EXCEPTION_PREAMBLE(isolate); | 2861 EXCEPTION_PREAMBLE(isolate); |
2862 i::Handle<i::Object> obj = i::SetProperty( | 2862 i::Handle<i::Object> obj = i::SetProperty( |
| 2863 isolate, |
2863 self, | 2864 self, |
2864 key_obj, | 2865 key_obj, |
2865 value_obj, | 2866 value_obj, |
2866 static_cast<PropertyAttributes>(attribs), | 2867 static_cast<PropertyAttributes>(attribs), |
2867 i::kNonStrictMode); | 2868 i::kNonStrictMode); |
2868 has_pending_exception = obj.is_null(); | 2869 has_pending_exception = obj.is_null(); |
2869 EXCEPTION_BAILOUT_CHECK(isolate, false); | 2870 EXCEPTION_BAILOUT_CHECK(isolate, false); |
2870 return true; | 2871 return true; |
2871 } | 2872 } |
2872 | 2873 |
(...skipping 3792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6665 | 6666 |
6666 v->VisitPointers(blocks_.first(), first_block_limit_); | 6667 v->VisitPointers(blocks_.first(), first_block_limit_); |
6667 | 6668 |
6668 for (int i = 1; i < blocks_.length(); i++) { | 6669 for (int i = 1; i < blocks_.length(); i++) { |
6669 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6670 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6670 } | 6671 } |
6671 } | 6672 } |
6672 | 6673 |
6673 | 6674 |
6674 } } // namespace v8::internal | 6675 } } // namespace v8::internal |
OLD | NEW |