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

Unified Diff: runtime/vm/compiler.cc

Issue 1037453002: Split Thread/Isolate instances, but still maintain 1:1 relationship. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 44671)
+++ runtime/vm/compiler.cc (working copy)
@@ -178,7 +178,7 @@
RawError* Compiler::Compile(const Library& library, const Script& script) {
- Isolate* isolate = Isolate::Current();
+ Isolate* volatile isolate = Isolate::Current();
siva 2015/03/25 21:26:34 What is the rationale for adding the 'volatile' ke
koda 2015/03/25 21:49:47 Without it, some compilers issue a warning about t
Ivan Posva 2015/03/26 14:36:52 Please make this local a const, which it really is
StackZone zone(isolate);
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
@@ -279,7 +279,7 @@
}
}
- Isolate* isolate = Isolate::Current();
+ Isolate* volatile isolate = Isolate::Current();
Ivan Posva 2015/03/26 14:36:52 ditto
// We remember all the classes that are being compiled in these lists. This
// also allows us to reset the marked_for_parsing state in case we see an
// error.
@@ -376,7 +376,7 @@
bool is_compiled = false;
Thread* thread = Thread::Current();
Zone* zone = thread->zone();
- Isolate* isolate = thread->isolate();
+ Isolate* volatile isolate = thread->isolate();
HANDLESCOPE(isolate);
// We may reattempt compilation if the function needs to be assembled using
@@ -965,7 +965,7 @@
bool optimized,
intptr_t osr_id) {
Thread* thread = Thread::Current();
- Isolate* isolate = thread->isolate();
+ Isolate* volatile isolate = thread->isolate();
StackZone stack_zone(isolate);
Zone* zone = stack_zone.GetZone();
LongJumpScope jump;
@@ -1065,7 +1065,7 @@
// This is only used from unit tests.
RawError* Compiler::CompileParsedFunction(
ParsedFunction* parsed_function) {
- Isolate* isolate = Isolate::Current();
+ Isolate* volatile isolate = Isolate::Current();
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
// Non-optimized code generator.
@@ -1142,7 +1142,7 @@
// The VM sets the field's value to transiton_sentinel prior to
// evaluating the initializer value.
ASSERT(field.value() == Object::transition_sentinel().raw());
- Isolate* isolate = Isolate::Current();
+ Isolate* volatile isolate = Isolate::Current();
StackZone zone(isolate);
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
@@ -1176,7 +1176,7 @@
RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) {
Thread* thread = Thread::Current();
- Isolate* isolate = thread->isolate();
+ Isolate* volatile isolate = thread->isolate();
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
if (FLAG_trace_compiler) {
« no previous file with comments | « runtime/vm/base_isolate.h ('k') | runtime/vm/dart.cc » ('j') | runtime/vm/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698