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

Unified Diff: runtime/vm/object.h

Issue 1454553004: Create code and instruction object, and install them in the background compilation thread while br… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 5 years, 1 month 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
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 94e480f2d0deddd4e9be390b9a19fff709ef4854..7c40e637d2e06a479d09599ccd24aa6b9ba3e637 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4348,7 +4348,7 @@ class Code : public Object {
bool optimized = false);
static RawCode* FinalizeCode(const char* name,
Assembler* assembler,
- bool optimized = false);
+ bool optimized);
static RawCode* LookupCode(uword pc);
static RawCode* LookupCodeInVmIsolate(uword pc);
static RawCode* FindCode(uword pc, int64_t timestamp);
@@ -4395,7 +4395,7 @@ class Code : public Object {
if (!IsDisabled()) return;
ASSERT(Thread::Current()->IsMutatorThread());
ASSERT(instructions() != active_instructions());
- set_active_instructions(instructions());
+ SetActiveInstructions(instructions());
}
bool IsDisabled() const {
@@ -4447,15 +4447,7 @@ class Code : public Object {
StoreNonPointer(&raw_ptr()->compile_timestamp_, timestamp);
}
- void set_active_instructions(RawInstructions* instructions) const {
- ASSERT(Thread::Current()->IsMutatorThread() || !is_alive());
- // RawInstructions are never allocated in New space and hence a
- // store buffer update is not needed here.
- StorePointer(&raw_ptr()->active_instructions_, instructions);
- StoreNonPointer(&raw_ptr()->entry_point_,
- reinterpret_cast<uword>(instructions->ptr()) +
- Instructions::HeaderSize());
- }
+ void SetActiveInstructions(RawInstructions* instructions) const;
void set_instructions(RawInstructions* instructions) const {
ASSERT(Thread::Current()->IsMutatorThread() || !is_alive());
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698