Revision: 14165
Author: [email protected]
Date: Mon Apr 8 06:10:59 2013
Log: Train wreck reduction.
Furthermore, this tiny patch avoids direct access to the context_ field.
Review URL: https://codereview.chromium.org/13772004
http://code.google.com/p/v8/source/detail?r=14165
Modified:
/branches/bleeding_edge/src/ic.cc
/branches/bleeding_edge/src/isolate.cc
=======================================
--- /branches/bleeding_edge/src/ic.cc Thu Mar 28 05:43:19 2013
+++ /branches/bleeding_edge/src/ic.cc Mon Apr 8 06:10:59 2013
@@ -2386,8 +2386,7 @@
ic.patch(*code);
}
- Handle<JSBuiltinsObject> builtins = Handle<JSBuiltinsObject>(
- isolate->thread_local_top()->context_->builtins(), isolate);
+ Handle<JSBuiltinsObject> builtins(isolate->js_builtins_object());
Object* builtin = NULL; // Initialization calms down the compiler.
switch (op) {
case Token::SUB:
@@ -2524,8 +2523,7 @@
}
}
- Handle<JSBuiltinsObject> builtins = Handle<JSBuiltinsObject>(
- isolate->thread_local_top()->context_->builtins(), isolate);
+ Handle<JSBuiltinsObject> builtins(isolate->js_builtins_object());
Object* builtin = NULL; // Initialization calms down the compiler.
switch (op) {
case Token::ADD:
=======================================
--- /branches/bleeding_edge/src/isolate.cc Thu Apr 4 10:55:43 2013
+++ /branches/bleeding_edge/src/isolate.cc Mon Apr 8 06:10:59 2013
@@ -1508,14 +1508,12 @@
Handle<Context> Isolate::native_context() {
- GlobalObject* global = thread_local_top()->context_->global_object();
- return Handle<Context>(global->native_context());
+ return Handle<Context>(context()->global_object()->native_context());
}
Handle<Context> Isolate::global_context() {
- GlobalObject* global = thread_local_top()->context_->global_object();
- return Handle<Context>(global->global_context());
+ return Handle<Context>(context()->global_object()->global_context());
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.