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

Side by Side Diff: src/isolate.h

Issue 18774002: Handlify JSReceiver/JSObject::DeleteProperty method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Toon Verwaest. Created 7 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 | « no previous file | 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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 typedef ZoneList<Handle<Object> > ZoneObjectList; 117 typedef ZoneList<Handle<Object> > ZoneObjectList;
118 118
119 #define RETURN_IF_SCHEDULED_EXCEPTION(isolate) \ 119 #define RETURN_IF_SCHEDULED_EXCEPTION(isolate) \
120 do { \ 120 do { \
121 Isolate* __isolate__ = (isolate); \ 121 Isolate* __isolate__ = (isolate); \
122 if (__isolate__->has_scheduled_exception()) { \ 122 if (__isolate__->has_scheduled_exception()) { \
123 return __isolate__->PromoteScheduledException(); \ 123 return __isolate__->PromoteScheduledException(); \
124 } \ 124 } \
125 } while (false) 125 } while (false)
126 126
127 #define RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, T) \
128 do { \
129 Isolate* __isolate__ = (isolate); \
130 if (__isolate__->has_scheduled_exception()) { \
131 __isolate__->PromoteScheduledException(); \
132 return Handle<T>::null(); \
133 } \
134 } while (false)
135
127 #define RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, value) \ 136 #define RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, value) \
128 do { \ 137 do { \
129 if ((call).is_null()) { \ 138 if ((call).is_null()) { \
130 ASSERT((isolate)->has_pending_exception()); \ 139 ASSERT((isolate)->has_pending_exception()); \
131 return (value); \ 140 return (value); \
132 } \ 141 } \
133 } while (false) 142 } while (false)
134 143
135 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ 144 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \
136 do { \ 145 do { \
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 1513
1505 // Mark the native context with out of memory. 1514 // Mark the native context with out of memory.
1506 inline void Context::mark_out_of_memory() { 1515 inline void Context::mark_out_of_memory() {
1507 native_context()->set_out_of_memory(HEAP->true_value()); 1516 native_context()->set_out_of_memory(HEAP->true_value());
1508 } 1517 }
1509 1518
1510 1519
1511 } } // namespace v8::internal 1520 } } // namespace v8::internal
1512 1521
1513 #endif // V8_ISOLATE_H_ 1522 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698