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

Unified Diff: src/disassembler.cc

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/disassembler.cc
diff --git a/src/disassembler.cc b/src/disassembler.cc
index e41734babdbe008d5eead38d53a7f5390fd6be43..5f64aedcc97a6ef32006e7ec467e5b0e0712aef8 100644
--- a/src/disassembler.cc
+++ b/src/disassembler.cc
@@ -115,8 +115,8 @@ static int DecodeIt(Isolate* isolate,
const V8NameConverter& converter,
byte* begin,
byte* end) {
- NoHandleAllocation ha(isolate);
- AssertNoAllocation no_alloc;
+ RequireNewHandleScope ha(isolate);
+ DisallowHeapAllocation no_alloc;
ExternalReferenceEncoder ref_encoder;
Heap* heap = HEAP;

Powered by Google App Engine
This is Rietveld 408576698