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
parent 1345caa2
...@@ -2386,8 +2386,7 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) { ...@@ -2386,8 +2386,7 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) {
ic.patch(*code); ic.patch(*code);
} }
Handle<JSBuiltinsObject> builtins = Handle<JSBuiltinsObject>( Handle<JSBuiltinsObject> builtins(isolate->js_builtins_object());
isolate->thread_local_top()->context_->builtins(), isolate);
Object* builtin = NULL; // Initialization calms down the compiler. Object* builtin = NULL; // Initialization calms down the compiler.
switch (op) { switch (op) {
case Token::SUB: case Token::SUB:
...@@ -2524,8 +2523,7 @@ RUNTIME_FUNCTION(MaybeObject*, BinaryOp_Patch) { ...@@ -2524,8 +2523,7 @@ RUNTIME_FUNCTION(MaybeObject*, BinaryOp_Patch) {
} }
} }
Handle<JSBuiltinsObject> builtins = Handle<JSBuiltinsObject>( Handle<JSBuiltinsObject> builtins(isolate->js_builtins_object());
isolate->thread_local_top()->context_->builtins(), isolate);
Object* builtin = NULL; // Initialization calms down the compiler. Object* builtin = NULL; // Initialization calms down the compiler.
switch (op) { switch (op) {
case Token::ADD: case Token::ADD:
......
...@@ -1508,14 +1508,12 @@ bool Isolate::is_out_of_memory() { ...@@ -1508,14 +1508,12 @@ bool Isolate::is_out_of_memory() {
Handle<Context> Isolate::native_context() { Handle<Context> Isolate::native_context() {
GlobalObject* global = thread_local_top()->context_->global_object(); return Handle<Context>(context()->global_object()->native_context());
return Handle<Context>(global->native_context());
} }
Handle<Context> Isolate::global_context() { Handle<Context> Isolate::global_context() {
GlobalObject* global = thread_local_top()->context_->global_object(); return Handle<Context>(context()->global_object()->global_context());
return Handle<Context>(global->global_context());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment