Remove direct reference from builtins code to global object. Load the
global object through the context instead. Review URL: http://codereview.chromium.org/2822003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4857 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
1c5a9435ab
commit
9a34337066
@ -6918,8 +6918,7 @@ void DeferredSearchCache::Generate() {
|
||||
__ 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));
|
||||
|
@ -4793,8 +4793,7 @@ void DeferredSearchCache::Generate() {
|
||||
__ 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));
|
||||
|
Loading…
Reference in New Issue
Block a user