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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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
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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool need_write_barrier = true; 170 bool need_write_barrier = true;
171 // Argument to NewContext is the function, which is still in edi. 171 // Argument to NewContext is the function, which is still in edi.
172 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 172 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
173 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; 173 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt;
174 if (info()->scope()->is_script_scope()) { 174 if (info()->scope()->is_script_scope()) {
175 __ push(edi); 175 __ push(edi);
176 __ Push(info()->scope()->scope_info()); 176 __ Push(info()->scope()->scope_info());
177 __ CallRuntime(Runtime::kNewScriptContext); 177 __ CallRuntime(Runtime::kNewScriptContext);
178 deopt_mode = Safepoint::kLazyDeopt; 178 deopt_mode = Safepoint::kLazyDeopt;
179 } else { 179 } else {
180 if (slots <= 180 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
181 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
182 Callable callable = CodeFactory::FastNewFunctionContext( 181 Callable callable = CodeFactory::FastNewFunctionContext(
183 isolate(), info()->scope()->scope_type()); 182 isolate(), info()->scope()->scope_type());
184 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), 183 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(),
185 Immediate(slots)); 184 Immediate(slots));
186 __ Call(callable.code(), RelocInfo::CODE_TARGET); 185 __ Call(callable.code(), RelocInfo::CODE_TARGET);
187 // Result of the FastNewFunctionContext builtin is always in new space. 186 // Result of the FastNewFunctionContext builtin is always in new space.
188 need_write_barrier = false; 187 need_write_barrier = false;
189 } else { 188 } else {
190 __ Push(edi); 189 __ Push(edi);
191 __ Push(Smi::FromInt(info()->scope()->scope_type())); 190 __ Push(Smi::FromInt(info()->scope()->scope_type()));
(...skipping 4900 matching lines...) Expand 10 before | Expand all | Expand 10 after
5092 __ bind(deferred->exit()); 5091 __ bind(deferred->exit());
5093 __ bind(&done); 5092 __ bind(&done);
5094 } 5093 }
5095 5094
5096 #undef __ 5095 #undef __
5097 5096
5098 } // namespace internal 5097 } // namespace internal
5099 } // namespace v8 5098 } // namespace v8
5100 5099
5101 #endif // V8_TARGET_ARCH_IA32 5100 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698