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

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2227763003: [turbofan] Rewrite ToObject as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert "Delete hydrogen toObject" Created 4 years, 4 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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 __ JumpIfSmi(r2, &convert); 932 __ JumpIfSmi(r2, &convert);
933 __ CompareObjectType(r2, r3, r3, FIRST_JS_RECEIVER_TYPE); 933 __ CompareObjectType(r2, r3, r3, FIRST_JS_RECEIVER_TYPE);
934 __ bge(&done_convert); 934 __ bge(&done_convert);
935 __ CompareRoot(r2, Heap::kNullValueRootIndex); 935 __ CompareRoot(r2, Heap::kNullValueRootIndex);
936 __ beq(&exit); 936 __ beq(&exit);
937 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); 937 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex);
938 __ beq(&exit); 938 __ beq(&exit);
939 __ bind(&convert); 939 __ bind(&convert);
940 ToObjectStub stub(isolate()); 940 ToObjectStub stub(isolate());
941 __ CallStub(&stub); 941 __ CallStub(&stub);
942 RestoreContext();
942 __ bind(&done_convert); 943 __ bind(&done_convert);
943 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); 944 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER);
944 __ push(r2); 945 __ push(r2);
945 946
946 // Check cache validity in generated code. If we cannot guarantee cache 947 // Check cache validity in generated code. If we cannot guarantee cache
947 // validity, call the runtime system to check cache validity or get the 948 // validity, call the runtime system to check cache validity or get the
948 // property names in a fixed array. Note: Proxies never have an enum cache, 949 // property names in a fixed array. Note: Proxies never have an enum cache,
949 // so will always take the slow path. 950 // so will always take the slow path.
950 Label call_runtime; 951 Label call_runtime;
951 __ CheckEnumCache(&call_runtime); 952 __ CheckEnumCache(&call_runtime);
(...skipping 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after
3689 DCHECK(kOSRBranchInstruction == br_instr); 3690 DCHECK(kOSRBranchInstruction == br_instr);
3690 3691
3691 DCHECK(interrupt_address == 3692 DCHECK(interrupt_address ==
3692 isolate->builtins()->OnStackReplacement()->entry()); 3693 isolate->builtins()->OnStackReplacement()->entry());
3693 return ON_STACK_REPLACEMENT; 3694 return ON_STACK_REPLACEMENT;
3694 } 3695 }
3695 3696
3696 } // namespace internal 3697 } // namespace internal
3697 } // namespace v8 3698 } // namespace v8
3698 #endif // V8_TARGET_ARCH_S390 3699 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698