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

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

Issue 352173006: Clean up the global object naming madness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 5 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/builtins-x64.cc ('k') | src/x64/lithium-codegen-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 if (info->strict_mode() == SLOPPY && !info->is_native()) { 116 if (info->strict_mode() == SLOPPY && !info->is_native()) {
117 Label ok; 117 Label ok;
118 // +1 for return address. 118 // +1 for return address.
119 StackArgumentsAccessor args(rsp, info->scope()->num_parameters()); 119 StackArgumentsAccessor args(rsp, info->scope()->num_parameters());
120 __ movp(rcx, args.GetReceiverOperand()); 120 __ movp(rcx, args.GetReceiverOperand());
121 121
122 __ CompareRoot(rcx, Heap::kUndefinedValueRootIndex); 122 __ CompareRoot(rcx, Heap::kUndefinedValueRootIndex);
123 __ j(not_equal, &ok, Label::kNear); 123 __ j(not_equal, &ok, Label::kNear);
124 124
125 __ movp(rcx, GlobalObjectOperand()); 125 __ movp(rcx, GlobalObjectOperand());
126 __ movp(rcx, FieldOperand(rcx, GlobalObject::kGlobalReceiverOffset)); 126 __ movp(rcx, FieldOperand(rcx, GlobalObject::kGlobalProxyOffset));
127 127
128 __ movp(args.GetReceiverOperand(), rcx); 128 __ movp(args.GetReceiverOperand(), rcx);
129 129
130 __ bind(&ok); 130 __ bind(&ok);
131 } 131 }
132 132
133 // Open a frame scope to indicate that there is a frame on the stack. The 133 // Open a frame scope to indicate that there is a frame on the stack. The
134 // MANUAL indicates that the scope shouldn't actually generate code to set up 134 // MANUAL indicates that the scope shouldn't actually generate code to set up
135 // the frame (that is done below). 135 // the frame (that is done below).
136 FrameScope frame_scope(masm_, StackFrame::MANUAL); 136 FrameScope frame_scope(masm_, StackFrame::MANUAL);
(...skipping 4682 matching lines...) Expand 10 before | Expand all | Expand 10 after
4819 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4819 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4820 Assembler::target_address_at(call_target_address, 4820 Assembler::target_address_at(call_target_address,
4821 unoptimized_code)); 4821 unoptimized_code));
4822 return OSR_AFTER_STACK_CHECK; 4822 return OSR_AFTER_STACK_CHECK;
4823 } 4823 }
4824 4824
4825 4825
4826 } } // namespace v8::internal 4826 } } // namespace v8::internal
4827 4827
4828 #endif // V8_TARGET_ARCH_X64 4828 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698