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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 | 223 |
224 Handle<Object> GetProperty(Isolate* isolate, | 224 Handle<Object> GetProperty(Isolate* isolate, |
225 Handle<Object> obj, | 225 Handle<Object> obj, |
226 Handle<Object> key) { | 226 Handle<Object> key) { |
227 CALL_HEAP_FUNCTION(isolate, | 227 CALL_HEAP_FUNCTION(isolate, |
228 Runtime::GetObjectProperty(isolate, obj, key), Object); | 228 Runtime::GetObjectProperty(isolate, obj, key), Object); |
229 } | 229 } |
230 | 230 |
231 | 231 |
232 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate, | 232 Handle<String> LookupSingleCharacterStringFromCode(Isolate* isolate, |
233 uint32_t index) { | 233 uint32_t index) { |
234 CALL_HEAP_FUNCTION( | 234 CALL_HEAP_FUNCTION( |
235 isolate, | 235 isolate, |
236 isolate->heap()->LookupSingleCharacterStringFromCode(index), Object); | 236 isolate->heap()->LookupSingleCharacterStringFromCode(index), |
| 237 String); |
237 } | 238 } |
238 | 239 |
239 | 240 |
240 // Wrappers for scripts are kept alive and cached in weak global | 241 // Wrappers for scripts are kept alive and cached in weak global |
241 // handles referred from foreign objects held by the scripts as long as | 242 // handles referred from foreign objects held by the scripts as long as |
242 // they are used. When they are not used anymore, the garbage | 243 // they are used. When they are not used anymore, the garbage |
243 // collector will call the weak callback on the global handle | 244 // collector will call the weak callback on the global handle |
244 // associated with the wrapper and get rid of both the wrapper and the | 245 // associated with the wrapper and get rid of both the wrapper and the |
245 // handle. | 246 // handle. |
246 static void ClearWrapperCache(v8::Isolate* v8_isolate, | 247 static void ClearWrapperCache(v8::Isolate* v8_isolate, |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 Handle<Code> code) { | 839 Handle<Code> code) { |
839 heap->EnsureWeakObjectToCodeTable(); | 840 heap->EnsureWeakObjectToCodeTable(); |
840 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); | 841 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); |
841 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); | 842 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); |
842 CALL_HEAP_FUNCTION_VOID(heap->isolate(), | 843 CALL_HEAP_FUNCTION_VOID(heap->isolate(), |
843 heap->AddWeakObjectToCodeDependency(*object, *dep)); | 844 heap->AddWeakObjectToCodeDependency(*object, *dep)); |
844 } | 845 } |
845 | 846 |
846 | 847 |
847 } } // namespace v8::internal | 848 } } // namespace v8::internal |
OLD | NEW |