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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 287 |
288 | 288 |
289 Handle<Object> GetProperty(Isolate* isolate, | 289 Handle<Object> GetProperty(Isolate* isolate, |
290 Handle<Object> obj, | 290 Handle<Object> obj, |
291 Handle<Object> key) { | 291 Handle<Object> key) { |
292 CALL_HEAP_FUNCTION(isolate, | 292 CALL_HEAP_FUNCTION(isolate, |
293 Runtime::GetObjectProperty(isolate, obj, key), Object); | 293 Runtime::GetObjectProperty(isolate, obj, key), Object); |
294 } | 294 } |
295 | 295 |
296 | 296 |
297 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value) { | |
298 const bool skip_hidden_prototypes = false; | |
299 CALL_HEAP_FUNCTION(obj->GetIsolate(), | |
300 obj->SetPrototype(*value, skip_hidden_prototypes), Object); | |
301 } | |
302 | |
303 | |
304 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate, | 297 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate, |
305 uint32_t index) { | 298 uint32_t index) { |
306 CALL_HEAP_FUNCTION( | 299 CALL_HEAP_FUNCTION( |
307 isolate, | 300 isolate, |
308 isolate->heap()->LookupSingleCharacterStringFromCode(index), Object); | 301 isolate->heap()->LookupSingleCharacterStringFromCode(index), Object); |
309 } | 302 } |
310 | 303 |
311 | 304 |
312 Handle<String> SubString(Handle<String> str, | 305 Handle<String> SubString(Handle<String> str, |
313 int start, | 306 int start, |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 data->next = prev_next_; | 909 data->next = prev_next_; |
917 data->limit = prev_limit_; | 910 data->limit = prev_limit_; |
918 #ifdef DEBUG | 911 #ifdef DEBUG |
919 handles_detached_ = true; | 912 handles_detached_ = true; |
920 #endif | 913 #endif |
921 return deferred; | 914 return deferred; |
922 } | 915 } |
923 | 916 |
924 | 917 |
925 } } // namespace v8::internal | 918 } } // namespace v8::internal |
OLD | NEW |