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

Side by Side Diff: src/handles.cc

Issue 6397011: Make exception thrown via v8 public API propagate to v8::TryCatch as JS thrown exceptions do. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing Vitaly's comments Created 9 years, 10 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/messages.cc » ('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 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object); 307 CALL_HEAP_FUNCTION(obj->GetProperty(*str), Object);
308 } 308 }
309 309
310 310
311 Handle<Object> GetProperty(Handle<Object> obj, 311 Handle<Object> GetProperty(Handle<Object> obj,
312 Handle<Object> key) { 312 Handle<Object> key) {
313 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object); 313 CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(obj, key), Object);
314 } 314 }
315 315
316 316
317 Handle<Object> GetProperty(Handle<JSObject> obj,
318 Handle<String> name,
319 LookupResult* result) {
320 PropertyAttributes attributes;
321 CALL_HEAP_FUNCTION(obj->GetProperty(*obj, result, *name, &attributes),
322 Object);
323 }
324
325
317 Handle<Object> GetElement(Handle<Object> obj, 326 Handle<Object> GetElement(Handle<Object> obj,
318 uint32_t index) { 327 uint32_t index) {
319 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object); 328 CALL_HEAP_FUNCTION(Runtime::GetElement(obj, index), Object);
320 } 329 }
321 330
322 331
323 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 332 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
324 Handle<JSObject> holder, 333 Handle<JSObject> holder,
325 Handle<String> name, 334 Handle<String> name,
326 PropertyAttributes* attributes) { 335 PropertyAttributes* attributes) {
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 900
892 OptimizedObjectForAddingMultipleProperties:: 901 OptimizedObjectForAddingMultipleProperties::
893 ~OptimizedObjectForAddingMultipleProperties() { 902 ~OptimizedObjectForAddingMultipleProperties() {
894 // Reoptimize the object to allow fast property access. 903 // Reoptimize the object to allow fast property access.
895 if (has_been_transformed_) { 904 if (has_been_transformed_) {
896 TransformToFastProperties(object_, unused_property_fields_); 905 TransformToFastProperties(object_, unused_property_fields_);
897 } 906 }
898 } 907 }
899 908
900 } } // namespace v8::internal 909 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698