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

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

Issue 2760953002: [builtins] Move more files into v8_builtins_generators source set (Closed)
Patch Set: rebased Created 3 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/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/builtins/builtins-constructor.h" 10 #include "src/builtins/builtins-constructor.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool need_write_barrier = true; 174 bool need_write_barrier = true;
175 // Argument to NewContext is the function, which is still in rdi. 175 // Argument to NewContext is the function, which is still in rdi.
176 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 176 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
177 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; 177 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt;
178 if (info()->scope()->is_script_scope()) { 178 if (info()->scope()->is_script_scope()) {
179 __ Push(rdi); 179 __ Push(rdi);
180 __ Push(info()->scope()->scope_info()); 180 __ Push(info()->scope()->scope_info());
181 __ CallRuntime(Runtime::kNewScriptContext); 181 __ CallRuntime(Runtime::kNewScriptContext);
182 deopt_mode = Safepoint::kLazyDeopt; 182 deopt_mode = Safepoint::kLazyDeopt;
183 } else { 183 } else {
184 if (slots <= 184 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
185 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
186 Callable callable = CodeFactory::FastNewFunctionContext( 185 Callable callable = CodeFactory::FastNewFunctionContext(
187 isolate(), info()->scope()->scope_type()); 186 isolate(), info()->scope()->scope_type());
188 __ Set(FastNewFunctionContextDescriptor::SlotsRegister(), slots); 187 __ Set(FastNewFunctionContextDescriptor::SlotsRegister(), slots);
189 __ Call(callable.code(), RelocInfo::CODE_TARGET); 188 __ Call(callable.code(), RelocInfo::CODE_TARGET);
190 // Result of FastNewFunctionContextStub is always in new space. 189 // Result of FastNewFunctionContextStub is always in new space.
191 need_write_barrier = false; 190 need_write_barrier = false;
192 } else { 191 } else {
193 __ Push(rdi); 192 __ Push(rdi);
194 __ Push(Smi::FromInt(info()->scope()->scope_type())); 193 __ Push(Smi::FromInt(info()->scope()->scope_type()));
195 __ CallRuntime(Runtime::kNewFunctionContext); 194 __ CallRuntime(Runtime::kNewFunctionContext);
(...skipping 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after
5370 __ bind(deferred->exit()); 5369 __ bind(deferred->exit());
5371 __ bind(&done); 5370 __ bind(&done);
5372 } 5371 }
5373 5372
5374 #undef __ 5373 #undef __
5375 5374
5376 } // namespace internal 5375 } // namespace internal
5377 } // namespace v8 5376 } // namespace v8
5378 5377
5379 #endif // V8_TARGET_ARCH_X64 5378 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698