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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.cc

Issue 2281073002: Create ScopeInfos while analyzing the Scope chain (Closed)
Patch Set: rebase Created 4 years, 3 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/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Possibly allocate a local context. 149 // Possibly allocate a local context.
150 if (info()->scope()->NeedsContext()) { 150 if (info()->scope()->NeedsContext()) {
151 Comment(";;; Allocate local context"); 151 Comment(";;; Allocate local context");
152 bool need_write_barrier = true; 152 bool need_write_barrier = true;
153 // Argument to NewContext is the function, which is in a1. 153 // Argument to NewContext is the function, which is in a1.
154 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 154 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
155 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; 155 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt;
156 if (info()->scope()->is_script_scope()) { 156 if (info()->scope()->is_script_scope()) {
157 __ push(a1); 157 __ push(a1);
158 __ Push(info()->scope()->GetScopeInfo(info()->isolate())); 158 __ Push(info()->scope()->scope_info());
159 __ CallRuntime(Runtime::kNewScriptContext); 159 __ CallRuntime(Runtime::kNewScriptContext);
160 deopt_mode = Safepoint::kLazyDeopt; 160 deopt_mode = Safepoint::kLazyDeopt;
161 } else { 161 } else {
162 FastNewFunctionContextStub stub(isolate()); 162 FastNewFunctionContextStub stub(isolate());
163 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots)); 163 __ li(FastNewFunctionContextDescriptor::SlotsRegister(), Operand(slots));
164 __ CallStub(&stub); 164 __ CallStub(&stub);
165 // Result of FastNewFunctionContextStub is always in new space. 165 // Result of FastNewFunctionContextStub is always in new space.
166 need_write_barrier = false; 166 need_write_barrier = false;
167 } 167 }
168 RecordSafepoint(deopt_mode); 168 RecordSafepoint(deopt_mode);
(...skipping 5574 matching lines...) Expand 10 before | Expand all | Expand 10 after
5743 __ ld(result, FieldMemOperand(scratch, 5743 __ ld(result, FieldMemOperand(scratch,
5744 FixedArray::kHeaderSize - kPointerSize)); 5744 FixedArray::kHeaderSize - kPointerSize));
5745 __ bind(deferred->exit()); 5745 __ bind(deferred->exit());
5746 __ bind(&done); 5746 __ bind(&done);
5747 } 5747 }
5748 5748
5749 #undef __ 5749 #undef __
5750 5750
5751 } // namespace internal 5751 } // namespace internal
5752 } // namespace v8 5752 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698