Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: src/handles.cc

Issue 7321006: Add GetPropertyAttribute method for Object in the API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix the mentioned issues Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/handles.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 385
386 Handle<Object> GetElement(Handle<Object> obj, 386 Handle<Object> GetElement(Handle<Object> obj,
387 uint32_t index) { 387 uint32_t index) {
388 Isolate* isolate = Isolate::Current(); 388 Isolate* isolate = Isolate::Current();
389 CALL_HEAP_FUNCTION(isolate, Runtime::GetElement(obj, index), Object); 389 CALL_HEAP_FUNCTION(isolate, Runtime::GetElement(obj, index), Object);
390 } 390 }
391 391
392 392
393 PropertyAttributes GetPropertyAttribute(Handle<JSObject> obj,
394 Handle<Object> key,
395 bool* has_pending_exception) {
396 return obj->TryGetPropertyAttribute(key, has_pending_exception);
397 }
398
399
393 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 400 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
394 Handle<JSObject> holder, 401 Handle<JSObject> holder,
395 Handle<String> name, 402 Handle<String> name,
396 PropertyAttributes* attributes) { 403 PropertyAttributes* attributes) {
397 Isolate* isolate = receiver->GetIsolate(); 404 Isolate* isolate = receiver->GetIsolate();
398 CALL_HEAP_FUNCTION(isolate, 405 CALL_HEAP_FUNCTION(isolate,
399 holder->GetPropertyWithInterceptor(*receiver, 406 holder->GetPropertyWithInterceptor(*receiver,
400 *name, 407 *name,
401 attributes), 408 attributes),
402 Object); 409 Object);
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 973
967 bool CompileOptimized(Handle<JSFunction> function, 974 bool CompileOptimized(Handle<JSFunction> function,
968 int osr_ast_id, 975 int osr_ast_id,
969 ClearExceptionFlag flag) { 976 ClearExceptionFlag flag) {
970 CompilationInfo info(function); 977 CompilationInfo info(function);
971 info.SetOptimizing(osr_ast_id); 978 info.SetOptimizing(osr_ast_id);
972 return CompileLazyHelper(&info, flag); 979 return CompileLazyHelper(&info, flag);
973 } 980 }
974 981
975 } } // namespace v8::internal 982 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698