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

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

Issue 2397193003: PPC/s390: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/crankshaft/s390/lithium-codegen-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.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/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 5355 matching lines...) Expand 10 before | Expand all | Expand 10 after
5366 5366
5367 void LCodeGen::DoTypeof(LTypeof* instr) { 5367 void LCodeGen::DoTypeof(LTypeof* instr) {
5368 DCHECK(ToRegister(instr->value()).is(r6)); 5368 DCHECK(ToRegister(instr->value()).is(r6));
5369 DCHECK(ToRegister(instr->result()).is(r3)); 5369 DCHECK(ToRegister(instr->result()).is(r3));
5370 Label end, do_call; 5370 Label end, do_call;
5371 Register value_register = ToRegister(instr->value()); 5371 Register value_register = ToRegister(instr->value());
5372 __ JumpIfNotSmi(value_register, &do_call); 5372 __ JumpIfNotSmi(value_register, &do_call);
5373 __ mov(r3, Operand(isolate()->factory()->number_string())); 5373 __ mov(r3, Operand(isolate()->factory()->number_string()));
5374 __ b(&end); 5374 __ b(&end);
5375 __ bind(&do_call); 5375 __ bind(&do_call);
5376 TypeofStub stub(isolate()); 5376 Callable callable = CodeFactory::Typeof(isolate());
5377 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 5377 CallCode(callable.code(), RelocInfo::CODE_TARGET, instr);
5378 __ bind(&end); 5378 __ bind(&end);
5379 } 5379 }
5380 5380
5381 5381
5382 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) { 5382 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) {
5383 Register input = ToRegister(instr->value()); 5383 Register input = ToRegister(instr->value());
5384 5384
5385 Condition final_branch_condition = 5385 Condition final_branch_condition =
5386 EmitTypeofIs(instr->TrueLabel(chunk_), instr->FalseLabel(chunk_), input, 5386 EmitTypeofIs(instr->TrueLabel(chunk_), instr->FalseLabel(chunk_), input,
5387 instr->type_literal()); 5387 instr->type_literal());
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
5707 __ LoadP(result, 5707 __ LoadP(result,
5708 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5708 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5709 __ bind(deferred->exit()); 5709 __ bind(deferred->exit());
5710 __ bind(&done); 5710 __ bind(&done);
5711 } 5711 }
5712 5712
5713 #undef __ 5713 #undef __
5714 5714
5715 } // namespace internal 5715 } // namespace internal
5716 } // namespace v8 5716 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698