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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 21499002: Get rid of HStringLength. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('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 // 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 4844 matching lines...) Expand 10 before | Expand all | Expand 10 after
4855 __ Set(result, Immediate(0)); 4855 __ Set(result, Immediate(0));
4856 4856
4857 PushSafepointRegistersScope scope(this); 4857 PushSafepointRegistersScope scope(this);
4858 __ SmiTag(char_code); 4858 __ SmiTag(char_code);
4859 __ push(char_code); 4859 __ push(char_code);
4860 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context()); 4860 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context());
4861 __ StoreToSafepointRegisterSlot(result, eax); 4861 __ StoreToSafepointRegisterSlot(result, eax);
4862 } 4862 }
4863 4863
4864 4864
4865 void LCodeGen::DoStringLength(LStringLength* instr) {
4866 Register string = ToRegister(instr->string());
4867 Register result = ToRegister(instr->result());
4868 __ mov(result, FieldOperand(string, String::kLengthOffset));
4869 }
4870
4871
4872 void LCodeGen::DoStringAdd(LStringAdd* instr) { 4865 void LCodeGen::DoStringAdd(LStringAdd* instr) {
4873 EmitPushTaggedOperand(instr->left()); 4866 EmitPushTaggedOperand(instr->left());
4874 EmitPushTaggedOperand(instr->right()); 4867 EmitPushTaggedOperand(instr->right());
4875 StringAddStub stub(instr->hydrogen()->flags()); 4868 StringAddStub stub(instr->hydrogen()->flags());
4876 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4869 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4877 } 4870 }
4878 4871
4879 4872
4880 void LCodeGen::DoInteger32ToDouble(LInteger32ToDouble* instr) { 4873 void LCodeGen::DoInteger32ToDouble(LInteger32ToDouble* instr) {
4881 if (CpuFeatures::IsSupported(SSE2)) { 4874 if (CpuFeatures::IsSupported(SSE2)) {
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
6513 FixedArray::kHeaderSize - kPointerSize)); 6506 FixedArray::kHeaderSize - kPointerSize));
6514 __ bind(&done); 6507 __ bind(&done);
6515 } 6508 }
6516 6509
6517 6510
6518 #undef __ 6511 #undef __
6519 6512
6520 } } // namespace v8::internal 6513 } } // namespace v8::internal
6521 6514
6522 #endif // V8_TARGET_ARCH_IA32 6515 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698