OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 Handle<Object> GetProperty(Handle<JSObject> obj, | 356 Handle<Object> GetProperty(Handle<JSObject> obj, |
357 const char* name) { | 357 const char* name) { |
358 Isolate* isolate = obj->GetIsolate(); | 358 Isolate* isolate = obj->GetIsolate(); |
359 Handle<String> str = isolate->factory()->LookupAsciiSymbol(name); | 359 Handle<String> str = isolate->factory()->LookupAsciiSymbol(name); |
360 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); | 360 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); |
361 } | 361 } |
362 | 362 |
363 | 363 |
364 Handle<Object> GetProperty(Handle<Object> obj, | 364 Handle<Object> GetProperty(Handle<Object> obj, |
| 365 const char* name, |
| 366 LookupResult* result) { |
| 367 Isolate* isolate = Isolate::Current(); |
| 368 Handle<String> str = isolate->factory()->LookupAsciiSymbol(name); |
| 369 PropertyAttributes attributes; |
| 370 CALL_HEAP_FUNCTION( |
| 371 isolate, obj->GetProperty(*obj, result, *str, &attributes), Object); |
| 372 } |
| 373 |
| 374 |
| 375 Handle<Object> GetProperty(Handle<Object> obj, |
365 Handle<Object> key) { | 376 Handle<Object> key) { |
366 Isolate* isolate = Isolate::Current(); | 377 Isolate* isolate = Isolate::Current(); |
367 CALL_HEAP_FUNCTION(isolate, | 378 CALL_HEAP_FUNCTION(isolate, |
368 Runtime::GetObjectProperty(isolate, obj, key), Object); | 379 Runtime::GetObjectProperty(isolate, obj, key), Object); |
369 } | 380 } |
370 | 381 |
371 | 382 |
372 Handle<Object> GetProperty(Handle<JSObject> obj, | 383 Handle<Object> GetProperty(Handle<JSObject> obj, |
373 Handle<String> name, | 384 Handle<String> name, |
374 LookupResult* result) { | 385 LookupResult* result) { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 | 978 |
968 bool CompileOptimized(Handle<JSFunction> function, | 979 bool CompileOptimized(Handle<JSFunction> function, |
969 int osr_ast_id, | 980 int osr_ast_id, |
970 ClearExceptionFlag flag) { | 981 ClearExceptionFlag flag) { |
971 CompilationInfo info(function); | 982 CompilationInfo info(function); |
972 info.SetOptimizing(osr_ast_id); | 983 info.SetOptimizing(osr_ast_id); |
973 return CompileLazyHelper(&info, flag); | 984 return CompileLazyHelper(&info, flag); |
974 } | 985 } |
975 | 986 |
976 } } // namespace v8::internal | 987 } } // namespace v8::internal |
OLD | NEW |