OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 | 370 |
371 Handle<Object> GetProperty(Handle<Object> obj, | 371 Handle<Object> GetProperty(Handle<Object> obj, |
372 Handle<Object> key) { | 372 Handle<Object> key) { |
373 Isolate* isolate = Isolate::Current(); | 373 Isolate* isolate = Isolate::Current(); |
374 CALL_HEAP_FUNCTION(isolate, | 374 CALL_HEAP_FUNCTION(isolate, |
375 Runtime::GetObjectProperty(isolate, obj, key), Object); | 375 Runtime::GetObjectProperty(isolate, obj, key), Object); |
376 } | 376 } |
377 | 377 |
378 | 378 |
379 Handle<Object> GetProperty(Handle<JSReceiver> obj, | |
380 Handle<String> name, | |
381 LookupResult* result) { | |
382 PropertyAttributes attributes; | |
383 Isolate* isolate = Isolate::Current(); | |
384 CALL_HEAP_FUNCTION(isolate, | |
385 obj->GetProperty(*obj, result, *name, &attributes), | |
386 Object); | |
387 } | |
388 | |
389 | |
390 Handle<Object> GetElement(Handle<Object> obj, | 379 Handle<Object> GetElement(Handle<Object> obj, |
391 uint32_t index) { | 380 uint32_t index) { |
392 Isolate* isolate = Isolate::Current(); | 381 Isolate* isolate = Isolate::Current(); |
393 CALL_HEAP_FUNCTION(isolate, Runtime::GetElement(obj, index), Object); | 382 CALL_HEAP_FUNCTION(isolate, Runtime::GetElement(obj, index), Object); |
394 } | 383 } |
395 | 384 |
396 | 385 |
397 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, | 386 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
398 Handle<JSObject> holder, | 387 Handle<JSObject> holder, |
399 Handle<String> name, | 388 Handle<String> name, |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 931 |
943 bool CompileOptimized(Handle<JSFunction> function, | 932 bool CompileOptimized(Handle<JSFunction> function, |
944 int osr_ast_id, | 933 int osr_ast_id, |
945 ClearExceptionFlag flag) { | 934 ClearExceptionFlag flag) { |
946 CompilationInfo info(function); | 935 CompilationInfo info(function); |
947 info.SetOptimizing(osr_ast_id); | 936 info.SetOptimizing(osr_ast_id); |
948 return CompileLazyHelper(&info, flag); | 937 return CompileLazyHelper(&info, flag); |
949 } | 938 } |
950 | 939 |
951 } } // namespace v8::internal | 940 } } // namespace v8::internal |
OLD | NEW |