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

Side by Side Diff: src/full-codegen/x64/full-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/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-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 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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/assembler-inl.h" 7 #include "src/assembler-inl.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/builtins/builtins-constructor.h" 10 #include "src/builtins/builtins-constructor.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 __ Push(info->scope()->scope_info()); 183 __ Push(info->scope()->scope_info());
184 __ CallRuntime(Runtime::kNewScriptContext); 184 __ CallRuntime(Runtime::kNewScriptContext);
185 PrepareForBailoutForId(BailoutId::ScriptContext(), 185 PrepareForBailoutForId(BailoutId::ScriptContext(),
186 BailoutState::TOS_REGISTER); 186 BailoutState::TOS_REGISTER);
187 // The new target value is not used, clobbering is safe. 187 // The new target value is not used, clobbering is safe.
188 DCHECK_NULL(info->scope()->new_target_var()); 188 DCHECK_NULL(info->scope()->new_target_var());
189 } else { 189 } else {
190 if (info->scope()->new_target_var() != nullptr) { 190 if (info->scope()->new_target_var() != nullptr) {
191 __ Push(rdx); // Preserve new target. 191 __ Push(rdx); // Preserve new target.
192 } 192 }
193 if (slots <= 193 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
194 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
195 Callable callable = CodeFactory::FastNewFunctionContext( 194 Callable callable = CodeFactory::FastNewFunctionContext(
196 isolate(), info->scope()->scope_type()); 195 isolate(), info->scope()->scope_type());
197 __ Set(FastNewFunctionContextDescriptor::SlotsRegister(), slots); 196 __ Set(FastNewFunctionContextDescriptor::SlotsRegister(), slots);
198 __ Call(callable.code(), RelocInfo::CODE_TARGET); 197 __ Call(callable.code(), RelocInfo::CODE_TARGET);
199 // Result of the FastNewFunctionContext builtin is always in new space. 198 // Result of the FastNewFunctionContext builtin is always in new space.
200 need_write_barrier = false; 199 need_write_barrier = false;
201 } else { 200 } else {
202 __ Push(rdi); 201 __ Push(rdi);
203 __ Push(Smi::FromInt(info->scope()->scope_type())); 202 __ Push(Smi::FromInt(info->scope()->scope_type()));
204 __ CallRuntime(Runtime::kNewFunctionContext); 203 __ CallRuntime(Runtime::kNewFunctionContext);
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 DCHECK_EQ( 2694 DCHECK_EQ(
2696 isolate->builtins()->OnStackReplacement()->entry(), 2695 isolate->builtins()->OnStackReplacement()->entry(),
2697 Assembler::target_address_at(call_target_address, unoptimized_code)); 2696 Assembler::target_address_at(call_target_address, unoptimized_code));
2698 return ON_STACK_REPLACEMENT; 2697 return ON_STACK_REPLACEMENT;
2699 } 2698 }
2700 2699
2701 } // namespace internal 2700 } // namespace internal
2702 } // namespace v8 2701 } // namespace v8
2703 2702
2704 #endif // V8_TARGET_ARCH_X64 2703 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698