Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 93863006: Revert "Load the global proxy from the context of the target function." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 property->key()->AsLiteral()->value(), 2739 property->key()->AsLiteral()->value(),
2740 RelocInfo::CODE_TARGET); 2740 RelocInfo::CODE_TARGET);
2741 } else { 2741 } else {
2742 EmitKeyedCallWithIC(expr, property->key()); 2742 EmitKeyedCallWithIC(expr, property->key());
2743 } 2743 }
2744 } else { 2744 } else {
2745 // Call to an arbitrary expression not handled specially above. 2745 // Call to an arbitrary expression not handled specially above.
2746 { PreservePositionScope scope(masm()->positions_recorder()); 2746 { PreservePositionScope scope(masm()->positions_recorder());
2747 VisitForStackValue(callee); 2747 VisitForStackValue(callee);
2748 } 2748 }
2749 // Push the hole as receiver. 2749 // Load global receiver object.
2750 // It will be correctly replaced in the call stub. 2750 __ movq(rbx, GlobalObjectOperand());
2751 __ PushRoot(Heap::kTheHoleValueRootIndex); 2751 __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset));
2752 // Emit function call. 2752 // Emit function call.
2753 EmitCallWithStub(expr, RECEIVER_IS_IMPLICIT); 2753 EmitCallWithStub(expr, NO_CALL_FUNCTION_FLAGS);
2754 } 2754 }
2755 2755
2756 #ifdef DEBUG 2756 #ifdef DEBUG
2757 // RecordJSReturnSite should have been called. 2757 // RecordJSReturnSite should have been called.
2758 ASSERT(expr->return_is_recorded_); 2758 ASSERT(expr->return_is_recorded_);
2759 #endif 2759 #endif
2760 } 2760 }
2761 2761
2762 2762
2763 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2763 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
4901 4901
4902 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4902 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4903 Assembler::target_address_at(call_target_address)); 4903 Assembler::target_address_at(call_target_address));
4904 return OSR_AFTER_STACK_CHECK; 4904 return OSR_AFTER_STACK_CHECK;
4905 } 4905 }
4906 4906
4907 4907
4908 } } // namespace v8::internal 4908 } } // namespace v8::internal
4909 4909
4910 #endif // V8_TARGET_ARCH_X64 4910 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698