Chromium Code Reviews

Unified Diff: src/v8conversions.h

Issue 15691017: Make assertion scopes thread safe. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« src/api.cc ('K') | « src/v8.h ('k') | src/v8globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8conversions.h
diff --git a/src/v8conversions.h b/src/v8conversions.h
index 9d618af9809a49abb817cd73043a20b28bf68cab..8191ee071c88bfbf61f96f546b137a107aa31d61 100644
--- a/src/v8conversions.h
+++ b/src/v8conversions.h
@@ -58,7 +58,7 @@ double StringToInt(UnicodeCache* unicode_cache, String* str, int radix);
// Converts a number into size_t.
inline size_t NumberToSize(Isolate* isolate,
Object* number) {
- NoHandleAllocation hc(isolate);
+ DisallowHandleAllocation no_handles;
if (number->IsSmi()) {
return Smi::cast(number)->value();
} else {
« src/api.cc ('K') | « src/v8.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine