summaryrefslogtreecommitdiffstats
path: root/src/register-allocator-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/register-allocator-inl.h')
-rw-r--r--src/register-allocator-inl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/register-allocator-inl.h b/src/register-allocator-inl.h
index e0ea9e18..5a68ab0c 100644
--- a/src/register-allocator-inl.h
+++ b/src/register-allocator-inl.h
@@ -63,14 +63,14 @@ Result& Result::operator=(const Result& other) {
Result::~Result() {
if (is_register()) {
- CodeGeneratorScope::Current()->allocator()->Unuse(reg());
+ CodeGeneratorScope::Current(Isolate::Current())->allocator()->Unuse(reg());
}
}
void Result::Unuse() {
if (is_register()) {
- CodeGeneratorScope::Current()->allocator()->Unuse(reg());
+ CodeGeneratorScope::Current(Isolate::Current())->allocator()->Unuse(reg());
}
invalidate();
}
@@ -79,7 +79,7 @@ void Result::Unuse() {
void Result::CopyTo(Result* destination) const {
destination->value_ = value_;
if (is_register()) {
- CodeGeneratorScope::Current()->allocator()->Use(reg());
+ CodeGeneratorScope::Current(Isolate::Current())->allocator()->Use(reg());
}
}