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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 1029643002: Move CompilationInfo::this_has_uses to HGraph::this_has_uses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-12
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #endif 136 #endif
137 137
138 // a1: Callee's JS function. 138 // a1: Callee's JS function.
139 // cp: Callee's context. 139 // cp: Callee's context.
140 // fp: Caller's frame pointer. 140 // fp: Caller's frame pointer.
141 // lr: Caller's pc. 141 // lr: Caller's pc.
142 142
143 // Sloppy mode functions and builtins need to replace the receiver with the 143 // Sloppy mode functions and builtins need to replace the receiver with the
144 // global proxy when called as functions (without an explicit receiver 144 // global proxy when called as functions (without an explicit receiver
145 // object). 145 // object).
146 if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && 146 if (graph()->this_has_uses() && is_sloppy(info_->language_mode()) &&
147 !info_->is_native()) { 147 !info_->is_native()) {
148 Label ok; 148 Label ok;
149 int receiver_offset = info_->scope()->num_parameters() * kPointerSize; 149 int receiver_offset = info_->scope()->num_parameters() * kPointerSize;
150 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 150 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
151 __ lw(a2, MemOperand(sp, receiver_offset)); 151 __ lw(a2, MemOperand(sp, receiver_offset));
152 __ Branch(&ok, ne, a2, Operand(at)); 152 __ Branch(&ok, ne, a2, Operand(at));
153 153
154 __ lw(a2, GlobalObjectOperand()); 154 __ lw(a2, GlobalObjectOperand());
155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); 155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset));
156 156
(...skipping 5831 matching lines...) Expand 10 before | Expand all | Expand 10 after
5988 __ li(at, scope_info); 5988 __ li(at, scope_info);
5989 __ Push(at, ToRegister(instr->function())); 5989 __ Push(at, ToRegister(instr->function()));
5990 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5990 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5991 RecordSafepoint(Safepoint::kNoLazyDeopt); 5991 RecordSafepoint(Safepoint::kNoLazyDeopt);
5992 } 5992 }
5993 5993
5994 5994
5995 #undef __ 5995 #undef __
5996 5996
5997 } } // namespace v8::internal 5997 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698