Revision: 4857
Author: a...@chromium.org
Date: Mon Jun 14 05:08:39 2010
Log: Remove direct reference from builtins code to global object. Load the
global object through the context instead.
Review URL: http://codereview.chromium.org/2822003
http://code.google.com/p/v8/source/detail?r=4857
Modified:
/branches/bleeding_edge/src/ia32/codegen-ia32.cc
/branches/bleeding_edge/src/x64/codegen-x64.cc
=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Mon Jun 14 04:37:05
2010
+++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Mon Jun 14 05:08:39
2010
@@ -6918,8 +6918,7 @@
__ bind(&cache_miss);
__ push(cache_); // store a reference to cache
__ push(key_); // store a key
- Handle<Object> receiver(Top::global_context()->global());
- __ push(Immediate(receiver));
+ __ push(Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX)));
__ push(key_);
// On ia32 function must be in edi.
__ mov(edi, FieldOperand(cache_, JSFunctionResultCache::kFactoryOffset));
=======================================
--- /branches/bleeding_edge/src/x64/codegen-x64.cc Mon Jun 14 03:21:24 2010
+++ /branches/bleeding_edge/src/x64/codegen-x64.cc Mon Jun 14 05:08:39 2010
@@ -4793,8 +4793,7 @@
__ bind(&cache_miss);
__ push(cache_); // store a reference to cache
__ push(key_); // store a key
- Handle<Object> receiver(Top::global_context()->global());
- __ Push(receiver);
+ __ push(Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX)));
__ push(key_);
// On x64 function must be in rdi.
__ movq(rdi, FieldOperand(cache_,
JSFunctionResultCache::kFactoryOffset));
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev