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

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

Issue 104013008: Reland v8:18458 "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/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2808 property->key()->AsLiteral()->value(), 2808 property->key()->AsLiteral()->value(),
2809 RelocInfo::CODE_TARGET); 2809 RelocInfo::CODE_TARGET);
2810 } else { 2810 } else {
2811 EmitKeyedCallWithIC(expr, property->key()); 2811 EmitKeyedCallWithIC(expr, property->key());
2812 } 2812 }
2813 } else { 2813 } else {
2814 // Call to an arbitrary expression not handled specially above. 2814 // Call to an arbitrary expression not handled specially above.
2815 { PreservePositionScope scope(masm()->positions_recorder()); 2815 { PreservePositionScope scope(masm()->positions_recorder());
2816 VisitForStackValue(callee); 2816 VisitForStackValue(callee);
2817 } 2817 }
2818 // Load global receiver object. 2818 // Push the hole as receiver.
2819 __ ldr(r1, GlobalObjectOperand()); 2819 // It will be correctly replaced in the call stub.
2820 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); 2820 __ LoadRoot(r1, Heap::kTheHoleValueRootIndex);
2821 __ push(r1); 2821 __ push(r1);
2822 // Emit function call. 2822 // Emit function call.
2823 EmitCallWithStub(expr, NO_CALL_FUNCTION_FLAGS); 2823 EmitCallWithStub(expr, RECEIVER_IS_IMPLICIT);
2824 } 2824 }
2825 2825
2826 #ifdef DEBUG 2826 #ifdef DEBUG
2827 // RecordJSReturnSite should have been called. 2827 // RecordJSReturnSite should have been called.
2828 ASSERT(expr->return_is_recorded_); 2828 ASSERT(expr->return_is_recorded_);
2829 #endif 2829 #endif
2830 } 2830 }
2831 2831
2832 2832
2833 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2833 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after
4911 ASSERT(Memory::uint32_at(interrupt_address_pointer) == 4911 ASSERT(Memory::uint32_at(interrupt_address_pointer) ==
4912 reinterpret_cast<uint32_t>( 4912 reinterpret_cast<uint32_t>(
4913 isolate->builtins()->OsrAfterStackCheck()->entry())); 4913 isolate->builtins()->OsrAfterStackCheck()->entry()));
4914 return OSR_AFTER_STACK_CHECK; 4914 return OSR_AFTER_STACK_CHECK;
4915 } 4915 }
4916 4916
4917 4917
4918 } } // namespace v8::internal 4918 } } // namespace v8::internal
4919 4919
4920 #endif // V8_TARGET_ARCH_ARM 4920 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698