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

Side by Side Diff: src/isolate.h

Issue 200363002: Handlify callers of Object::GetElement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 9 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/factory.cc ('k') | src/json-stringifier.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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if ((call).is_null()) { \ 139 if ((call).is_null()) { \
140 ASSERT((isolate)->has_pending_exception()); \ 140 ASSERT((isolate)->has_pending_exception()); \
141 return (value); \ 141 return (value); \
142 } \ 142 } \
143 } while (false) 143 } while (false)
144 144
145 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ 145 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \
146 do { \ 146 do { \
147 ASSERT(!(isolate)->has_pending_exception()); \ 147 ASSERT(!(isolate)->has_pending_exception()); \
148 CHECK(!(call).is_null()); \ 148 CHECK(!(call).is_null()); \
149 CHECK(!(isolate)->has_pending_exception()); \
150 } while (false) 149 } while (false)
151 150
152 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \ 151 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \
153 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) 152 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception())
154 153
155 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ 154 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \
156 C(Handler, handler) \ 155 C(Handler, handler) \
157 C(CEntryFP, c_entry_fp) \ 156 C(CEntryFP, c_entry_fp) \
158 C(Context, context) \ 157 C(Context, context) \
159 C(PendingException, pending_exception) \ 158 C(PendingException, pending_exception) \
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 } 1557 }
1559 1558
1560 EmbeddedVector<char, 128> filename_; 1559 EmbeddedVector<char, 128> filename_;
1561 FILE* file_; 1560 FILE* file_;
1562 int scope_depth_; 1561 int scope_depth_;
1563 }; 1562 };
1564 1563
1565 } } // namespace v8::internal 1564 } } // namespace v8::internal
1566 1565
1567 #endif // V8_ISOLATE_H_ 1566 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698