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

Side by Side Diff: src/api.h

Issue 12833015: Enable extra API checks, add a check for zapped global handles (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « build/common.gypi ('k') | no next file » | 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 #undef MAKE_TO_LOCAL 288 #undef MAKE_TO_LOCAL
289 289
290 290
291 // Implementations of OpenHandle 291 // Implementations of OpenHandle
292 292
293 #define MAKE_OPEN_HANDLE(From, To) \ 293 #define MAKE_OPEN_HANDLE(From, To) \
294 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \ 294 v8::internal::Handle<v8::internal::To> Utils::OpenHandle( \
295 const v8::From* that, bool allow_empty_handle) { \ 295 const v8::From* that, bool allow_empty_handle) { \
296 EXTRA_CHECK(allow_empty_handle || that != NULL); \ 296 EXTRA_CHECK(allow_empty_handle || that != NULL); \
297 EXTRA_CHECK(that == NULL || \
298 !(*reinterpret_cast<v8::internal::To**>( \
299 const_cast<v8::From*>(that)))->IsFailure()); \
297 return v8::internal::Handle<v8::internal::To>( \ 300 return v8::internal::Handle<v8::internal::To>( \
298 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ 301 reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \
299 } 302 }
300 303
301 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE) 304 OPEN_HANDLE_LIST(MAKE_OPEN_HANDLE)
302 305
303 #undef MAKE_OPEN_HANDLE 306 #undef MAKE_OPEN_HANDLE
304 #undef OPEN_HANDLE_LIST 307 #undef OPEN_HANDLE_LIST
305 308
306 309
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 stress_type_ = stress_type; 592 stress_type_ = stress_type;
590 } 593 }
591 594
592 private: 595 private:
593 static v8::Testing::StressType stress_type_; 596 static v8::Testing::StressType stress_type_;
594 }; 597 };
595 598
596 } } // namespace v8::internal 599 } } // namespace v8::internal
597 600
598 #endif // V8_API_H_ 601 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698