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

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

Issue 11348349: Improve array to string conversion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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
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 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 __ movq(rdi, object); 1430 __ movq(rdi, object);
1431 __ movq(rsi, index, RelocInfo::NONE); 1431 __ movq(rsi, index, RelocInfo::NONE);
1432 #endif 1432 #endif
1433 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); 1433 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2);
1434 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 1434 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
1435 __ bind(&done); 1435 __ bind(&done);
1436 } 1436 }
1437 } 1437 }
1438 1438
1439 1439
1440 void LCodeGen::DoSeqStringSetChar(LSeqStringSetChar* instr) {
1441 Register string = ToRegister(instr->string());
1442 Register index = ToRegister(instr->index());
1443 Register value = ToRegister(instr->value());
1444 SeqStringSetCharGenerator::Generate(
1445 masm(), instr->is_one_byte(), string, index, value);
1446 }
1447
1448
1440 void LCodeGen::DoBitNotI(LBitNotI* instr) { 1449 void LCodeGen::DoBitNotI(LBitNotI* instr) {
1441 LOperand* input = instr->value(); 1450 LOperand* input = instr->value();
1442 ASSERT(input->Equals(instr->result())); 1451 ASSERT(input->Equals(instr->result()));
1443 __ not_(ToRegister(input)); 1452 __ not_(ToRegister(input));
1444 } 1453 }
1445 1454
1446 1455
1447 void LCodeGen::DoThrow(LThrow* instr) { 1456 void LCodeGen::DoThrow(LThrow* instr) {
1448 __ push(ToRegister(instr->value())); 1457 __ push(ToRegister(instr->value()));
1449 CallRuntime(Runtime::kThrow, 1, instr); 1458 CallRuntime(Runtime::kThrow, 1, instr);
(...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after
5378 FixedArray::kHeaderSize - kPointerSize)); 5387 FixedArray::kHeaderSize - kPointerSize));
5379 __ bind(&done); 5388 __ bind(&done);
5380 } 5389 }
5381 5390
5382 5391
5383 #undef __ 5392 #undef __
5384 5393
5385 } } // namespace v8::internal 5394 } } // namespace v8::internal
5386 5395
5387 #endif // V8_TARGET_ARCH_X64 5396 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/string.js ('K') | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698