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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool need_write_barrier = true; 140 bool need_write_barrier = true;
141 // Argument to NewContext is the function, which is still in edi. 141 // Argument to NewContext is the function, which is still in edi.
142 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 142 int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
143 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; 143 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt;
144 if (info()->scope()->is_script_scope()) { 144 if (info()->scope()->is_script_scope()) {
145 __ push(edi); 145 __ push(edi);
146 __ Push(info()->scope()->scope_info()); 146 __ Push(info()->scope()->scope_info());
147 __ CallRuntime(Runtime::kNewScriptContext); 147 __ CallRuntime(Runtime::kNewScriptContext);
148 deopt_mode = Safepoint::kLazyDeopt; 148 deopt_mode = Safepoint::kLazyDeopt;
149 } else { 149 } else {
150 if (slots <= 150 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
151 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
152 Callable callable = CodeFactory::FastNewFunctionContext( 151 Callable callable = CodeFactory::FastNewFunctionContext(
153 isolate(), info()->scope()->scope_type()); 152 isolate(), info()->scope()->scope_type());
154 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(), 153 __ mov(FastNewFunctionContextDescriptor::SlotsRegister(),
155 Immediate(slots)); 154 Immediate(slots));
156 __ Call(callable.code(), RelocInfo::CODE_TARGET); 155 __ Call(callable.code(), RelocInfo::CODE_TARGET);
157 // Result of the FastNewFunctionContext builtin is always in new space. 156 // Result of the FastNewFunctionContext builtin is always in new space.
158 need_write_barrier = false; 157 need_write_barrier = false;
159 } else { 158 } else {
160 __ Push(edi); 159 __ Push(edi);
161 __ Push(Smi::FromInt(info()->scope()->scope_type())); 160 __ Push(Smi::FromInt(info()->scope()->scope_type()));
(...skipping 5425 matching lines...) Expand 10 before | Expand all | Expand 10 after
5587 __ bind(deferred->exit()); 5586 __ bind(deferred->exit());
5588 __ bind(&done); 5587 __ bind(&done);
5589 } 5588 }
5590 5589
5591 #undef __ 5590 #undef __
5592 5591
5593 } // namespace internal 5592 } // namespace internal
5594 } // namespace v8 5593 } // namespace v8
5595 5594
5596 #endif // V8_TARGET_ARCH_X87 5595 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698