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

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

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 6 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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5021 matching lines...) Expand 10 before | Expand all | Expand 10 after
5032 5032
5033 void LCodeGen::DoTypeof(LTypeof* instr) { 5033 void LCodeGen::DoTypeof(LTypeof* instr) {
5034 DCHECK(ToRegister(instr->value()).is(a3)); 5034 DCHECK(ToRegister(instr->value()).is(a3));
5035 DCHECK(ToRegister(instr->result()).is(v0)); 5035 DCHECK(ToRegister(instr->result()).is(v0));
5036 Label end, do_call; 5036 Label end, do_call;
5037 Register value_register = ToRegister(instr->value()); 5037 Register value_register = ToRegister(instr->value());
5038 __ JumpIfNotSmi(value_register, &do_call); 5038 __ JumpIfNotSmi(value_register, &do_call);
5039 __ li(v0, Operand(isolate()->factory()->number_string())); 5039 __ li(v0, Operand(isolate()->factory()->number_string()));
5040 __ jmp(&end); 5040 __ jmp(&end);
5041 __ bind(&do_call); 5041 __ bind(&do_call);
5042 Callable callable = CodeFactory::Typeof(isolate()); 5042 Callable callable = Builtins::CallableFor(isolate(), Builtins::kTypeof);
5043 CallCode(callable.code(), RelocInfo::CODE_TARGET, instr); 5043 CallCode(callable.code(), RelocInfo::CODE_TARGET, instr);
5044 __ bind(&end); 5044 __ bind(&end);
5045 } 5045 }
5046 5046
5047 5047
5048 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) { 5048 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) {
5049 Register input = ToRegister(instr->value()); 5049 Register input = ToRegister(instr->value());
5050 5050
5051 Register cmp1 = no_reg; 5051 Register cmp1 = no_reg;
5052 Operand cmp2 = Operand(no_reg); 5052 Operand cmp2 = Operand(no_reg);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
5403 __ lw(result, FieldMemOperand(scratch, 5403 __ lw(result, FieldMemOperand(scratch,
5404 FixedArray::kHeaderSize - kPointerSize)); 5404 FixedArray::kHeaderSize - kPointerSize));
5405 __ bind(deferred->exit()); 5405 __ bind(deferred->exit());
5406 __ bind(&done); 5406 __ bind(&done);
5407 } 5407 }
5408 5408
5409 #undef __ 5409 #undef __
5410 5410
5411 } // namespace internal 5411 } // namespace internal
5412 } // namespace v8 5412 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698