From: svenpanne@chromium.org Date: Mon, 8 Apr 2013 13:10:59 +0000 (+0000) Subject: Train wreck reduction. X-Git-Tag: upstream/4.7.83~14676 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90a587088b6f8bd6d00184ab3d8fe6770e1a4dae;p=platform%2Fupstream%2Fv8.git Train wreck reduction. Furthermore, this tiny patch avoids direct access to the context_ field. Review URL: https://codereview.chromium.org/13772004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14165 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/ic.cc b/src/ic.cc index 515c6f7..1d0d675 100644 --- a/src/ic.cc +++ b/src/ic.cc @@ -2386,8 +2386,7 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) { ic.patch(*code); } - Handle builtins = Handle( - isolate->thread_local_top()->context_->builtins(), isolate); + Handle builtins(isolate->js_builtins_object()); Object* builtin = NULL; // Initialization calms down the compiler. switch (op) { case Token::SUB: @@ -2524,8 +2523,7 @@ RUNTIME_FUNCTION(MaybeObject*, BinaryOp_Patch) { } } - Handle builtins = Handle( - isolate->thread_local_top()->context_->builtins(), isolate); + Handle builtins(isolate->js_builtins_object()); Object* builtin = NULL; // Initialization calms down the compiler. switch (op) { case Token::ADD: diff --git a/src/isolate.cc b/src/isolate.cc index c5f498a..1ef622e 100644 --- a/src/isolate.cc +++ b/src/isolate.cc @@ -1508,14 +1508,12 @@ bool Isolate::is_out_of_memory() { Handle Isolate::native_context() { - GlobalObject* global = thread_local_top()->context_->global_object(); - return Handle(global->native_context()); + return Handle(context()->global_object()->native_context()); } Handle Isolate::global_context() { - GlobalObject* global = thread_local_top()->context_->global_object(); - return Handle(global->global_context()); + return Handle(context()->global_object()->global_context()); }